function UserController::__construct

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

File

core/modules/user/src/Controller/UserController.php, line 68

Class

UserController
Controller routines for user routes.

Namespace

Drupal\user\Controller

Code

public function __construct(DateFormatterInterface $date_formatter, UserStorageInterface $user_storage, UserDataInterface $user_data, LoggerInterface $logger, FloodInterface $flood, protected TimeInterface $time, protected OneTimeAuthentication $oneTimeAuthentication, protected LoginFinalizer $loginFinalizer, protected LogoutFinalizer $logoutFinalizer, protected AccountCancellation $accountCancellation) {
  $this->dateFormatter = $date_formatter;
  $this->userStorage = $user_storage;
  $this->userData = $user_data;
  $this->logger = $logger;
  $this->flood = $flood;
}

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