Skip to content

Commit

Permalink
[site:install] Fix DB driver paths. (#3125)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas authored Jan 23, 2017
1 parent 7450efd commit c4f338d
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/Utils/Site.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,21 @@ public function getDatabaseTypes()
$this->loadLegacyFile('/core/includes/install.inc');
$this->setMinimalContainerPreKernel();

$driverDirectories = [
$this->appRoot . '/core/lib/Drupal/Core/Database/Driver',
$this->appRoot . '/drivers/lib/Drupal/Driver/Database'
];

$driverDirectories = array_filter(
$driverDirectories,
function ($directory) {
return is_dir($directory);
}
);

$finder = new Finder();
$finder->directories()
->in($this->appRoot . '/core/lib/Drupal/Core/Database/Driver')
->in($this->appRoot . '/drivers/lib/Drupal/Driver/Database')
->in($driverDirectories)
->depth('== 0');

$databases = [];
Expand Down

0 comments on commit c4f338d

Please sign in to comment.