8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ba4112 commit a7a8daeCopy full SHA for a7a8dae
src/Symfony/Component/Debug/DebugClassLoader.php
@@ -26,6 +26,7 @@ class DebugClassLoader
26
{
27
private $classLoader;
28
private $isFinder;
29
+ private $loaded = array();
30
private $wasFinder;
31
private static $caseCheck;
32
private static $deprecated = array();
@@ -164,9 +165,10 @@ public function loadClass($class)
164
165
ErrorHandler::stackErrors();
166
167
try {
- if ($this->isFinder) {
168
+ if ($this->isFinder && !isset($this->loaded[$class])) {
169
+ $this->loaded[$class] = true;
170
if ($file = $this->classLoader[0]->findFile($class)) {
- require_once $file;
171
+ require $file;
172
}
173
} else {
174
call_user_func($this->classLoader, $class);
0 commit comments