public static function Connection::open in MongoDB 8
File
- drivers/
lib/ Drupal/ Driver/ Database/ mongodb/ Connection.php, line 27
Class
Namespace
Drupal\Driver\Database\mongodbCode
public static function open(array &$connection_options = array()) {
$mongo_info['servers']['default']['server'] = $connection_options['database'];
return new MongoCollectionFactory($mongo_info);
}