You are here

public function Drush::__construct in MongoDB 8

File

drivers/lib/Drupal/Driver/Database/mongodb/Drush.php, line 12

Class

Drush

Namespace

Drupal\Driver\Database\mongodb

Code

public function __construct($db_spec = NULL) {
  if (isset($db_spec['host'])) {
    $db_spec['database'] = 'mongodb://' . $db_spec['host'] . '/' . $db_spec['database'];
  }
  parent::__construct($db_spec);
}