You are here

public function RegistrationController::__construct in User registration password 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\Core\Messenger\MessengerInterface $messenger: The status message.

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

File

src/Controller/RegistrationController.php, line 59

Class

RegistrationController
User registration password controller class.

Namespace

Drupal\user_registrationpassword\Controller

Code

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