You are here

public function UserManagementService::__construct in Auto Purge Users 8.3

Same name and namespace in other branches
  1. 8.2 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.

\Drupal\Core\Logger\LoggerChannelFactory $logger_factory: The logger factory.

File

src/Services/UserManagementService.php, line 69

Class

UserManagementService
Class that holds the purging logic.

Namespace

Drupal\purge_users\Services

Code

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