Issue #3425129 by mondrake, smustgrave: Classloader needs to be registered in Database::convertDbUrlToConnectionInfo()

merge-requests/5836/merge
Dave Long 2024-03-02 22:56:46 +00:00
parent 7454e5dfe0
commit 8fb7b4a197
No known key found for this signature in database
GPG Key ID: ED52AE211E142771
1 changed files with 1 additions and 0 deletions

View File

@ -535,6 +535,7 @@ abstract class Database {
// 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");