You are here

public function UserManagementService::__construct in Auto Purge Users 8.2

Same name and namespace in other branches
  1. 8.3 src/Services/UserManagementService.php \Drupal\purge_users\Services\UserManagementService::__construct()

UserManagementService constructor.

Parameters

\Drupal\Core\Session\AccountProxyInterface $currentUser: Current user.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

File

src/Services/UserManagementService.php, line 59

Class

UserManagementService
Class UserManagementService.

Namespace

Drupal\purge_users\Services

Code

public function __construct(AccountProxyInterface $currentUser, ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, MessengerInterface $messenger) {
  $this->currentUser = $currentUser;
  $this->config = $config_factory;
  $this->moduleHandler = $module_handler;
  $this->messenger = $messenger;
}