Skip to content
Snippets Groups Projects
Verified Commit 8fb7b4a1 authored by Dave Long's avatar Dave Long
Browse files

Issue #3425129 by mondrake, smustgrave: Classloader needs to be registered in...

Issue #3425129 by mondrake, smustgrave: Classloader needs to be registered in Database::convertDbUrlToConnectionInfo()
parent 7454e5df
No related branches found
No related tags found
No related merge requests found
......@@ -535,6 +535,7 @@ public static function convertDbUrlToConnectionInfo($url, $root, ?bool $include_
// called during regular runtime.
$additional_class_loader = new ClassLoader();
$additional_class_loader->addPsr4($driverNamespace . '\\', $driver->getPath());
$additional_class_loader->register();
$connection_class = $driverNamespace . '\\Connection';
if (!class_exists($connection_class)) {
throw new \InvalidArgumentException("Can not convert '$url' to a database connection, class '$connection_class' does not exist");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment