Forráskód Böngészése

fix for ignoring abstract definition

Amal Raghav 14 éve
szülő
commit
517735e581

+ 2 - 2
src/Symfony/Component/DependencyInjection/Compiler/ResolveDefinitionTemplatesPass.php

@@ -28,7 +28,7 @@ class ResolveDefinitionTemplatesPass implements CompilerPassInterface
             // yes, we are specifically fetching the definition from the
             // container to ensure we are not operating on stale data
             $definition = $container->getDefinition($id);
-            if (!$definition instanceof DefinitionDecorator) {
+            if (!$definition instanceof DefinitionDecorator || $definition->isAbstract()) {
                 continue;
             }
 
@@ -122,4 +122,4 @@ class ResolveDefinitionTemplatesPass implements CompilerPassInterface
 
         return $def;
     }
-}
+}