Skip to content
Snippets Groups Projects

Closes #3522513

Open mondrake requested to merge issue/drupal-3522513:3522513-deprecate-passing-root into 11.x
All threads resolved!
Files
12
@@ -38,7 +38,7 @@ protected function getDatabaseConnection(InputInterface $input) {
if (Database::getConnectionInfo('db-tools')) {
throw new \RuntimeException('Database "db-tools" is already defined. Cannot define database provided.');
}
$info = Database::convertDbUrlToConnectionInfo($input->getOption('database-url'), \Drupal::root());
$info = Database::convertDbUrlToConnectionInfo($input->getOption('database-url'));
Database::addConnectionInfo('db-tools', 'default', $info);
$key = 'db-tools';
}
Loading