public function SessionLimit::__construct in Session Limit 8
Same name and namespace in other branches
- 2.x 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
Namespace
Drupal\session_limit\ServicesCode
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;
}