You are here

public function ChangePwdPageController::__construct in Password Separate Form 8

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.

\Drupal\Component\Datetime\TimeInterface $time: The datetime service.

File

src/Controller/ChangePwdPageController.php, line 59

Class

ChangePwdPageController
Controller routines for user routes.

Namespace

Drupal\change_pwd_page\Controller

Code

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