public function MongodbSessionManager::__construct in MongoDB 8
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()
Overrides SessionManager::__construct
File
- mongodb_user/
src/ MongodbSessionManager.php, line 25 - Contains \Drupal\mongodb_user\MongodbSessionManager.
Class
Namespace
Drupal\mongodb_userCode
public function __construct(RequestStack $request_stack, MongoCollectionFactory $mongo, MetadataBag $metadata_bag, SessionConfigurationInterface $session_configuration, $handler = NULL) {
BaseSessionManager::__construct($request_stack, new FakeConnection([]), $metadata_bag, $session_configuration, $handler);
$this->mongo = $mongo;
}