Permalink
Browse files

minor #3804 [Components][DependencyInjection] add note about a use ca…

…se that requires to compile the container (xabbuh)

This PR was merged into the 2.3 branch.

Discussion
----------

[Components][DependencyInjection] add note about a use case that requires to compile the container

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets |

As @movetodevnull pointed out in symfony/symfony#10045, the compilation chapter of the DependencyInjection component doesn't give any concrete use case of when it is absolutely needed to compile the container.

We should decide whether or not it makes sense to extend this note, once #3753 is getting merged.

Commits
-------

c845ce2 [Components][DependencyInjection] add note about a use case that requires to compile the container
  • Loading branch information...
weaverryan committed May 13, 2014
2 parents 5c74318 + c845ce2 commit 9f1a354fe63a90bf4f6672082fe8cb2dc7900178
Showing with 3 additions and 1 deletion.
  1. +3 −1 components/dependency_injection/compilation.rst
@@ -7,7 +7,9 @@ Compiling the Container
The service container can be compiled for various reasons. These reasons
include checking for any potential issues such as circular references and
making the container more efficient by resolving parameters and removing
unused services.
unused services. Also, certain features - like using
:doc:`parent services </components/dependency_injection/parentservices>` -
require the container to be compiled.
It is compiled by running::

0 comments on commit 9f1a354

Please sign in to comment.