You are here

public function KeyValueExpirableFactory::__construct in MongoDB 8.2

KeyValueExpirableFactory constructor.

Parameters

\Drupal\mongodb\DatabaseFactory $databaseFactory: The mongodb.database_factory service.

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

Overrides KeyValueFactory::__construct

File

modules/mongodb_storage/src/KeyValueExpirableFactory.php, line 32

Class

KeyValueExpirableFactory
Class KeyValueFactory builds KeyValue stores as MongoDB collections.

Namespace

Drupal\mongodb_storage

Code

public function __construct(DatabaseFactory $databaseFactory, TimeInterface $time) {
  parent::__construct($databaseFactory);
  $this->time = $time;
}