public function SessionManager::__construct in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Session/SessionManager.php \Drupal\Core\Session\SessionManager::__construct()
Constructs a new session manager instance.
Parameters
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
\Drupal\Core\Database\Connection $connection: The database connection.
\Drupal\Core\Session\MetadataBag $metadata_bag: The session metadata bag.
\Drupal\Core\Session\SessionConfigurationInterface $session_configuration: The session configuration interface.
\Symfony\Component\HttpFoundation\Session\Storage\Proxy\AbstractProxy|Symfony\Component\HttpFoundation\Session\Storage\Handler\NativeSessionHandler|\SessionHandlerInterface|null $handler: The object to register as a PHP session handler. @see \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage::setSaveHandler()
File
- core/
lib/ Drupal/ Core/ Session/ SessionManager.php, line 85
Class
- SessionManager
- Manages user sessions.
Namespace
Drupal\Core\SessionCode
public function __construct(RequestStack $request_stack, Connection $connection, MetadataBag $metadata_bag, SessionConfigurationInterface $session_configuration, $handler = NULL) {
$options = [];
$this->sessionConfiguration = $session_configuration;
$this->requestStack = $request_stack;
$this->connection = $connection;
parent::__construct($options, $handler, $metadata_bag);
}