Skip to content

Adding a note about only being able to manipulate service definitions be... #2318

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions components/dependency_injection/definitions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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`