You are here

public function RoleExpireApiService::__construct in Role Expire 8

Same name and namespace in other branches
  1. 2.x src/RoleExpireApiService.php \Drupal\role_expire\RoleExpireApiService::__construct()

Constructs a new RoleExpireApiService object.

File

src/RoleExpireApiService.php, line 47

Class

RoleExpireApiService
Class RoleExpireApiService.

Namespace

Drupal\role_expire

Code

public function __construct(ConfigFactory $configFactory, Connection $connection, ModuleHandler $moduleHandler) {
  $this->config = $configFactory;
  $this->database = $connection;
  $this->sessionManager = \Drupal::service('session_manager');
  $this->moduleHandler = $moduleHandler;
}