Thomas Rabaix пре 9 година
родитељ
комит
b918a53777
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      DependencyInjection/Compiler/AddDependencyCallsCompilerPass.php

+ 1 - 1
DependencyInjection/Compiler/AddDependencyCallsCompilerPass.php

@@ -226,7 +226,7 @@ class AddDependencyCallsCompilerPass implements CompilerPassInterface
 
         if (method_exists($definition, 'setShared')) {
             // Symfony 2.8+
-            $definition->setShared(true);
+            $definition->setShared(false);
         } else {
             // For Symfony <2.8 compatibility
             $definition->setScope(ContainerInterface::SCOPE_PROTOTYPE);