function SessionHandler::__construct

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Session/SessionHandler.php \Drupal\Core\Session\SessionHandler::__construct()
  2. 10 core/lib/Drupal/Core/Session/SessionHandler.php \Drupal\Core\Session\SessionHandler::__construct()
  3. 9 core/lib/Drupal/Core/Session/SessionHandler.php \Drupal\Core\Session\SessionHandler::__construct()
  4. 8.9.x core/lib/Drupal/Core/Session/SessionHandler.php \Drupal\Core\Session\SessionHandler::__construct()

Constructs a new SessionHandler instance.

Parameters

\Symfony\Component\HttpFoundation\RequestStack $requestStack: The request stack.

\Drupal\Core\Database\Connection $connection: The database connection.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

File

core/lib/Drupal/Core/Session/SessionHandler.php, line 30

Class

SessionHandler
Default session handler.

Namespace

Drupal\Core\Session

Code

public function __construct(protected RequestStack $requestStack, protected Connection $connection, protected TimeInterface $time) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.