Loading core/lib/Drupal/Core/Site/Settings.php +1 −1 Original line number Diff line number Diff line Loading @@ -207,7 +207,7 @@ public static function initialize($app_root, $site_path, &$class_loader) { // the database. Therefore, allow the connection info to specify an // autoload directory for the driver. if (isset($info['autoload'])) { $class_loader->addPsr4($info['namespace'] . '\\', $info['autoload']); $class_loader->addPsr4($info['namespace'] . '\\', $app_root . '/' . $info['autoload']); } } } Loading core/tests/Drupal/Tests/Core/Site/SettingsTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -353,7 +353,7 @@ public function testDatabaseInfoInitialization(string $driver, ?string $namespac if (!empty($expected_autoload)) { $class_loader->expects($this->once()) ->method('addPsr4') ->with($expected_namespace . '\\', $expected_autoload); ->with($expected_namespace . '\\', vfsStream::url('root') . '/' . $expected_autoload); } else { $class_loader->expects($this->never()) Loading Loading
core/lib/Drupal/Core/Site/Settings.php +1 −1 Original line number Diff line number Diff line Loading @@ -207,7 +207,7 @@ public static function initialize($app_root, $site_path, &$class_loader) { // the database. Therefore, allow the connection info to specify an // autoload directory for the driver. if (isset($info['autoload'])) { $class_loader->addPsr4($info['namespace'] . '\\', $info['autoload']); $class_loader->addPsr4($info['namespace'] . '\\', $app_root . '/' . $info['autoload']); } } } Loading
core/tests/Drupal/Tests/Core/Site/SettingsTest.php +1 −1 Original line number Diff line number Diff line Loading @@ -353,7 +353,7 @@ public function testDatabaseInfoInitialization(string $driver, ?string $namespac if (!empty($expected_autoload)) { $class_loader->expects($this->once()) ->method('addPsr4') ->with($expected_namespace . '\\', $expected_autoload); ->with($expected_namespace . '\\', vfsStream::url('root') . '/' . $expected_autoload); } else { $class_loader->expects($this->never()) Loading