You are here

public function MongodbSessionHandler::__construct in MongoDB 8

Parameters

RequestStack $request_stack:

MongoCollectionFactory $mongo:

Overrides SessionHandler::__construct

File

mongodb_user/src/MongodbSessionHandler.php, line 30
Contains \Drupal\mongodb_user\MongodbSessionHandler.

Class

MongodbSessionHandler

Namespace

Drupal\mongodb_user

Code

public function __construct(RequestStack $request_stack, MongoCollectionFactory $mongo) {
  $this->requestStack = $request_stack;
  $this->mongo = $mongo;
  $this->connection = new FakeConnection([]);
}