فهرست منبع

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);
                 }