浏览代码

exclude classes that not exist from loading

ElectricMaxxx 11 年之前
父节点
当前提交
2d35466be0
共有 1 个文件被更改,包括 3 次插入0 次删除
  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);
                 }