You are here

public static function Connection::open in MongoDB 8

File

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

Class

Connection

Namespace

Drupal\Driver\Database\mongodb

Code

public static function open(array &$connection_options = array()) {
  $mongo_info['servers']['default']['server'] = $connection_options['database'];
  return new MongoCollectionFactory($mongo_info);
}