public function UserManager::__construct in Social Auth 3.x
Same name and namespace in other branches
- 8.2 src/User/UserManager.php \Drupal\social_auth\User\UserManager::__construct()
Constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Used for loading and creating Drupal user.
\Drupal\Core\Messenger\MessengerInterface $messenger: Used to display messages to user.
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: Used for logging errors.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Used for accessing Drupal configuration.
\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: Used for access Drupal user field definitions.
\Drupal\Core\Transliteration\PhpTransliteration $transliteration: Used for user picture directory and file transliteration.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: Used to get current UI language.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: Used for dispatching social auth events.
\Drupal\Core\Utility\Token $token: Used for token support in Drupal user picture directory.
\Drupal\Core\File\FileSystemInterface $file_system: Used for saving the profile picture of the users.
Overrides UserManager::__construct
File
- src/
User/ UserManager.php, line 99
Class
- UserManager
- Manages database related tasks.
Namespace
Drupal\social_auth\UserCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, MessengerInterface $messenger, LoggerChannelFactoryInterface $logger_factory, ConfigFactoryInterface $config_factory, EntityFieldManagerInterface $entity_field_manager, PhpTransliteration $transliteration, LanguageManagerInterface $language_manager, EventDispatcherInterface $event_dispatcher, Token $token, FileSystemInterface $file_system) {
parent::__construct('social_auth', $entity_type_manager, $messenger, $logger_factory);
$this->configFactory = $config_factory;
$this->entityFieldManager = $entity_field_manager;
$this->transliteration = $transliteration;
$this->languageManager = $language_manager;
$this->eventDispatcher = $event_dispatcher;
$this->token = $token;
$this->fileSystem = $file_system;
}