浏览代码

added method renames to UPDATE

Kris Wallsmith 14 年之前
父节点
当前提交
022728fda5
共有 1 个文件被更改,包括 16 次插入0 次删除
  1. 16 0
      UPDATE.md

+ 16 - 0
UPDATE.md

@@ -6,6 +6,22 @@ one. It only discusses changes that need to be done when using the "public"
 API of the framework. If you "hack" the core, you should probably follow the
 API of the framework. If you "hack" the core, you should probably follow the
 timeline closely anyway.
 timeline closely anyway.
 
 
+PR12 to PR13
+------------
+
+* Some methods in the DependencyInjection component's ContainerBuilder and
+  Definition classes have been renamed to be more specific and consistent:
+
+  Before:
+
+        $container->remove('my_definition');
+        $definition->setArgument(0, 'foo');
+
+  After:
+
+        $container->removeDefinition('my_definition');
+        $definition->replaceArgument(0, 'foo');
+
 PR11 to PR12
 PR11 to PR12
 ------------
 ------------