You are here

public function MongodbConfigStorageBootstrap::__construct in MongoDB 8

Constructs a new ConfigStorage controller.

Parameters

MongoCollectionFactory $mongo: The object wrapping the MongoDB database object.

string $collection: Name of the config collection.

Overrides MongodbConfigStorage::__construct

File

src/MongodbConfigStorageBootstrap.php, line 31
Definition of Drupal\mongodb\Config\ConfigStorageBootstrap.

Class

MongodbConfigStorageBootstrap

Namespace

Drupal\mongodb

Code

public function __construct(MongoCollectionFactory $mongo, ClassLoader $class_loader) {
  parent::__construct($mongo);
  $this->classLoader = $class_loader;
}