From 10ad99b33a94ca34f920fa873da9f90ed6e79089 Mon Sep 17 00:00:00 2001 From: Richard Miller Date: Tue, 19 Mar 2013 10:52:08 +0000 Subject: [PATCH 1/2] Adding a note about only being able to manipulate service definitions before the container is compiled --- components/dependency_injection/definitions.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/dependency_injection/definitions.rst b/components/dependency_injection/definitions.rst index d8acaac9002..9d34e66ddd0 100644 --- a/components/dependency_injection/definitions.rst +++ b/components/dependency_injection/definitions.rst @@ -137,3 +137,10 @@ You can also replace any existing method calls with an array of new ones with:: in the PHP code blocks of the configuration examples on pages such as :doc:`/components/dependency_injection/factories` and :doc:`/components/dependency_injection/parentservices`. + +.. note:: + + The methods here that change service definitions can only be used before + the container is compiled, once the container is compiled you cannot + manipulate service definitions further. To learn more about compiling + the container see :doc:`/components/dependency_injection/compilation` From be085256d97d9f9b7665b5c072d82810dd282908 Mon Sep 17 00:00:00 2001 From: Richard Miller Date: Tue, 19 Mar 2013 17:40:11 +0000 Subject: [PATCH 2/2] Removing extra spaces form note --- components/dependency_injection/definitions.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/dependency_injection/definitions.rst b/components/dependency_injection/definitions.rst index 9d34e66ddd0..052bfb62674 100644 --- a/components/dependency_injection/definitions.rst +++ b/components/dependency_injection/definitions.rst @@ -142,5 +142,5 @@ You can also replace any existing method calls with an array of new ones with:: The methods here that change service definitions can only be used before the container is compiled, once the container is compiled you cannot - manipulate service definitions further. To learn more about compiling - the container see :doc:`/components/dependency_injection/compilation` + manipulate service definitions further. To learn more about compiling + the container see :doc:`/components/dependency_injection/compilation`