You are here

public function UserController::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/user/src/Controller/UserController.php \Drupal\user\Controller\UserController::__construct()

Constructs a UserController object.

Parameters

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.

\Drupal\user\UserStorageInterface $user_storage: The user storage.

\Drupal\user\UserDataInterface $user_data: The user data service.

File

core/modules/user/src/Controller/UserController.php, line 56
Contains \Drupal\user\Controller\UserController.

Class

UserController
Controller routines for user routes.

Namespace

Drupal\user\Controller

Code

public function __construct(DateFormatterInterface $date_formatter, UserStorageInterface $user_storage, UserDataInterface $user_data) {
  $this->dateFormatter = $date_formatter;
  $this->userStorage = $user_storage;
  $this->userData = $user_data;
}