8000 Adding support for new ErrorHandler DebugClassLoader · symfony/maker-bundle@6d75f13 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6d75f13

Browse files
committed
Adding support for new ErrorHandler DebugClassLoader
1 parent cd4ec4e commit 6d75f13

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Util/ComposerAutoloaderFinder.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use Composer\Autoload\ClassLoader;
1515
use Symfony\Component\Debug\DebugClassLoader;
16+
use Symfony\Component\ErrorHandler\DebugClassLoader as ErrorHandlerDebugClassLoader;
1617

1718
/**
1819
* @internal
@@ -78,7 +79,9 @@ private function extractComposerClassLoader(array $autoloader)
7879
if ($autoloader[0] instanceof ClassLoader) {
7980
return $autoloader[0];
8081
}
81-
if ($autoloader[0] instanceof DebugClassLoader
82+
if (
83+
($autoloader[0] instanceof DebugClassLoader
84+
|| $autoloader[0] instanceof ErrorHandlerDebugClassLoader)
8285
&& \is_array($autoloader[0]->getClassLoader())
8386
&& $autoloader[0]->getClassLoader()[0] instanceof ClassLoader) {
8487
return $autoloader[0]->getClassLoader()[0];

0 commit comments

Comments
 (0)
0