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 1 commit
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
Next Next commit
Adding a note about only being able to manipulate service definitions…
… before the container is compiled
  • Loading branch information
richardmiller-zz committed Mar 19, 2013
commit 10ad99b33a94ca34f920fa873da9f90ed6e79089
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`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the extra space in the latest 2 lines?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, I've removed it now