You are here

protected function SocialAuthUserManager::filePrepareDirectory in Social Auth 8

Wrapper for file_prepare_directory.

We need to wrap the legacy procedural Drupal API functions so that we are not using them directly in our own methods. This way we can unit test our own methods.

See also

file_prepare_directory

1 call to SocialAuthUserManager::filePrepareDirectory()
SocialAuthUserManager::downloadProfilePic in src/SocialAuthUserManager.php
Downloads the profile picture to Drupal filesystem.

File

src/SocialAuthUserManager.php, line 672

Class

SocialAuthUserManager
Contains all logic that is related to Drupal user management.

Namespace

Drupal\social_auth

Code

protected function filePrepareDirectory(&$directory, $options) {
  return file_prepare_directory($directory, $options);
}