function UserAuthenticationController::__construct

Same name and namespace in other branches
  1. 11.x core/modules/user/src/Controller/UserAuthenticationController.php \Drupal\user\Controller\UserAuthenticationController::__construct()
  2. 10 core/modules/user/src/Controller/UserAuthenticationController.php \Drupal\user\Controller\UserAuthenticationController::__construct()
  3. 9 core/modules/user/src/Controller/UserAuthenticationController.php \Drupal\user\Controller\UserAuthenticationController::__construct()
  4. 8.9.x core/modules/user/src/Controller/UserAuthenticationController.php \Drupal\user\Controller\UserAuthenticationController::__construct()

File

core/modules/user/src/Controller/UserAuthenticationController.php, line 102

Class

UserAuthenticationController
Provides controllers for login, login status and logout via HTTP requests.

Namespace

Drupal\user\Controller

Code

public function __construct(UserFloodControlInterface $user_flood_control, UserStorageInterface $user_storage, CsrfTokenGenerator $csrf_token, UserAuthenticationInterface $user_auth, RouteProviderInterface $route_provider, Serializer $serializer, array $serializer_formats, LoggerInterface $logger, protected LoginFinalizer $loginFinalizer, protected LogoutFinalizer $logoutFinalizer, protected readonly NotificationHandler $notificationHandler) {
  $this->userFloodControl = $user_flood_control;
  $this->userStorage = $user_storage;
  $this->csrfToken = $csrf_token;
  $this->userAuth = $user_auth;
  $this->serializer = $serializer;
  $this->serializerFormats = $serializer_formats;
  $this->routeProvider = $route_provider;
  $this->logger = $logger;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.