Skip to content

Commit

Permalink
minor #3804 [Components][DependencyInjection] add note about a use ca…
Browse files Browse the repository at this point in the history
…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 9f1a354
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/dependency_injection/compilation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::

Expand Down

0 comments on commit 9f1a354

Please sign in to comment.