Browse Source

exclude classes that not exist from loading

ElectricMaxxx 11 years ago
parent
commit
2d35466be0
1 changed files with 3 additions and 0 deletions
  1. 3 0
      DependencyInjection/Compiler/ExtensionCompilerPass.php

+ 3 - 0
DependencyInjection/Compiler/ExtensionCompilerPass.php

@@ -96,6 +96,9 @@ class ExtensionCompilerPass implements CompilerPassInterface
                     }
                 } else {
                     $class = $this->getManagedClass($admin, $container);
+                    if (!class_exists($class)) {
+                        continue;
+                    }
                     $classReflection = new \ReflectionClass($class);
                     $subjectReflection = new \ReflectionClass($subject);
                 }