Ver código fonte

Revert "Merge remote branch 'lsmith77/prevent_redundant_DI_method_calls'"

This reverts commit 0d61ae06b43222ea80fd409e2743827df3f1c083, reversing
changes made to 8e3d125902fa3fe98f5e71b390cd5e03db457196.
Fabien Potencier 14 anos atrás
pai
commit
fa6961bb91

+ 1 - 3
src/Symfony/Component/DependencyInjection/InterfaceInjector.php

@@ -76,9 +76,7 @@ class InterfaceInjector
 
         foreach ($this->calls as $callback) {
             list($method, $arguments) = $callback;
-            if (!$definition->hasMethodCall($method)) {
-                $definition->addMethodCall($method, $arguments);
-            }
+            $definition->addMethodCall($method, $arguments);
         }
 
         $this->processedDefinitions[] = $definition;