You are here

public function SessionLimit::__construct in Session Limit 2.x

Same name and namespace in other branches
  1. 8 src/Services/SessionLimit.php \Drupal\session_limit\Services\SessionLimit::__construct()

SessionLimit constructor.

Parameters

Connection $database: The database connection.

EventDispatcherInterface $eventDispatcher: The event dispatcher service.

RouteMatchInterface $routeMatch: The Route.

AccountProxy $currentUser: The current user.

SessionManager $sessionManager: Session manager.

ModuleHandler $moduleHandler: Module handler.

ConfigFactory $configFactory: Config factory.

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

File

src/Services/SessionLimit.php, line 119

Class

SessionLimit

Namespace

Drupal\session_limit\Services

Code

public function __construct(Connection $database, EventDispatcherInterface $eventDispatcher, RouteMatchInterface $routeMatch, AccountProxy $currentUser, SessionManager $sessionManager, ModuleHandler $moduleHandler, ConfigFactory $configFactory, MessengerInterface $messenger) {
  $this->routeMatch = $routeMatch;
  $this->database = $database;
  $this->eventDispatcher = $eventDispatcher;
  $this->currentUser = $currentUser;
  $this->sessionManager = $sessionManager;
  $this->moduleHandler = $moduleHandler;
  $this->configFactory = $configFactory;
  $this->messenger = $messenger;
}