public function UserAuthenticator::__construct in Social API 3.x
Same name and namespace in other branches
- 8.2 src/User/UserAuthenticator.php \Drupal\social_api\User\UserAuthenticator::__construct()
Constructor.
Parameters
\Drupal\Core\Session\AccountProxyInterface $current_user: Used to get current active user.
\Drupal\Core\Messenger\MessengerInterface $messenger: Used to display messages to user.
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: Used for logging errors.
\Drupal\social_api\User\UserManagerInterface $user_manager: The Social API user manager.
\Drupal\social_api\SocialApiDataHandler $data_handler: Used to interact with session.
File
- src/
User/ UserAuthenticator.php, line 92
Class
- UserAuthenticator
- Manages Drupal authentication tasks for Social API.
Namespace
Drupal\social_api\UserCode
public function __construct(AccountProxyInterface $current_user, MessengerInterface $messenger, LoggerChannelFactoryInterface $logger_factory, UserManagerInterface $user_manager, SocialApiDataHandler $data_handler) {
$this->currentUser = $current_user;
$this->messenger = $messenger;
$this->loggerFactory = $logger_factory;
$this->userManager = $user_manager;
$this->dataHandler = $data_handler;
}