You are here

public function Connection::__construct in MongoDB 8

File

drivers/lib/Drupal/Driver/Database/mongodb/Connection.php, line 16

Class

Connection

Namespace

Drupal\Driver\Database\mongodb

Code

public function __construct(MongoCollectionFactory $mongo) {
  $this->mongo = $mongo;

  // Connection::destroy needs a connection object.
  $this->connection = new DoNothing();
  return parent::__construct([], [
    'namespace' => __NAMESPACE__,
  ]);
}