Skip to content

Commit 5d365d4

Browse files
committed
Merge pull request symfony#2318 from richardmiller/adding_note_on_service_manipulation
Adding a note about only being able to manipulate service definitions be...
2 parents f51116e + be08525 commit 5d365d4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

components/dependency_injection/definitions.rst

+7
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,10 @@ You can also replace any existing method calls with an array of new ones with::
137137
in the PHP code blocks of the configuration examples on pages such as
138138
:doc:`/components/dependency_injection/factories` and
139139
:doc:`/components/dependency_injection/parentservices`.
140+
141+
.. note::
142+
143+
The methods here that change service definitions can only be used before
144+
the container is compiled, once the container is compiled you cannot
145+
manipulate service definitions further. To learn more about compiling
146+
the container see :doc:`/components/dependency_injection/compilation`

0 commit comments

Comments
 (0)