function SessionHandler::__construct
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Session/SessionHandler.php \Drupal\Core\Session\SessionHandler::__construct()
- 10 core/lib/Drupal/Core/Session/SessionHandler.php \Drupal\Core\Session\SessionHandler::__construct()
- 11.x core/lib/Drupal/Core/Session/SessionHandler.php \Drupal\Core\Session\SessionHandler::__construct()
Constructs a new SessionHandler instance.
Parameters
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
\Drupal\Core\Database\Connection $connection: The database connection.
File
-
core/
lib/ Drupal/ Core/ Session/ SessionHandler.php, line 41
Class
- SessionHandler
- Default session handler.
Namespace
Drupal\Core\SessionCode
public function __construct(RequestStack $request_stack, Connection $connection) {
$this->requestStack = $request_stack;
$this->connection = $connection;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.