Pārlūkot izejas kodu

exclude classes that not exist from loading

ElectricMaxxx 11 gadi atpakaļ
vecāks
revīzija
2d35466be0

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