Ver Fonte

update to the last symfony changes

Emmanuel Vella há 14 anos atrás
pai
commit
4f6a6a2660
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      DependencyInjection/AddDependencyCallsPass.php

+ 2 - 2
DependencyInjection/AddDependencyCallsPass.php

@@ -43,11 +43,11 @@ class AddDependencyCallsPass implements CompilerPassInterface
             $arguments = $definition->getArguments();
 
             if (strlen($arguments[0]) == 0) {
-                $definition->setArgument(0, $id);
+                $definition->replaceArgument(0, $id);
             }
 
             if (strlen($arguments[2]) == 0) {
-                $definition->setArgument(2, 'SonataAdminBundle:CRUD');
+                $definition->replaceArgument(2, 'SonataAdminBundle:CRUD');
             }
 
             $this->applyDefaults($definition, $attributes);