public function Connection::__construct in MongoDB 8
File
- drivers/
lib/ Drupal/ Driver/ Database/ mongodb/ Connection.php, line 16
Class
Namespace
Drupal\Driver\Database\mongodbCode
public function __construct(MongoCollectionFactory $mongo) {
$this->mongo = $mongo;
// Connection::destroy needs a connection object.
$this->connection = new DoNothing();
return parent::__construct([], [
'namespace' => __NAMESPACE__,
]);
}