You are here

protected function SocialAuthUserManager::systemRetrieveFile in Social Auth 8

Wrapper for system_retrieve_file.

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

system_retrieve_file

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

File

src/SocialAuthUserManager.php, line 685

Class

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

Namespace

Drupal\social_auth

Code

protected function systemRetrieveFile($url, $destination, $managed, $replace) {
  return system_retrieve_file($url, $destination, $managed, $replace);
}