Commit 9f60871f authored by Crell's avatar Crell

The connection is not yet available early in the installer, so we cannot use...

The connection is not yet available early in the installer, so we cannot use it to find the driver installer.
parent 5dc9a0b8
...@@ -1010,6 +1010,8 @@ function db_run_tasks($driver) { ...@@ -1010,6 +1010,8 @@ function db_run_tasks($driver) {
* The name of the driver. * The name of the driver.
*/ */
function db_installer_object($driver) { function db_installer_object($driver) {
$class = Database::getConnection()->getDriverClass('Install\\Tasks'); // We cannot use Database::getConnection->getDriverClass() here, because
return new $class(); // the connection object is not yet functional.
$task_class = "Drupal\\Database\\Driver\\{$driver}\\Install\\Tasks";
return new $task_class();
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment