浏览代码

update to the last symfony changes

Emmanuel Vella 14 年之前
父节点
当前提交
4f6a6a2660
共有 1 个文件被更改,包括 2 次插入2 次删除
  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);