Browse Source

update to the last symfony changes

Emmanuel Vella 14 năm trước cách đây
mục cha
commit
4f6a6a2660
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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);