Sfoglia il codice sorgente

exclude classes that not exist from loading

ElectricMaxxx 11 anni fa
parent
commit
2d35466be0
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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);
                 }