You are here

public function CampaignMonitorUserController::__construct in Campaign Monitor 8

Same name and namespace in other branches
  1. 8.2 modules/campaignmonitor_user/src/Controller/CampaignMonitorUserController.php \Drupal\campaignmonitor_user\Controller\CampaignMonitorUserController::__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.

\Psr\Log\LoggerInterface $logger: A logger instance.

File

modules/campaignmonitor_user/src/Controller/CampaignMonitorUserController.php, line 57

Class

CampaignMonitorUserController
Controller routines for user routes.

Namespace

Drupal\campaignmonitor_user\Controller

Code

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