Skip to content

Commit

Permalink
minor #10109 Add explanation about prefix decision (greg0ire)
Browse files Browse the repository at this point in the history
This PR was submitted for the master branch but it was merged into the 4.3 branch instead (closes #10109).

Discussion
----------

Add explanation about prefix decision

See #9886, I left out
reasons related to overhead during compilation steps because that might
be too technical.

Commits
-------

305879d Add explanation about prefix decision
  • Loading branch information
javiereguiluz committed Sep 23, 2019
2 parents c7cdae0 + 305879d commit 03da816
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bundles/best_practices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,11 @@ Services
--------

If the bundle defines services, they must be prefixed with the bundle alias.
For example, AcmeBlogBundle services must be prefixed with ``acme_blog``.
For example, AcmeBlogBundle services must be prefixed with ``acme_blog``
instead of using fully qualified class names like in a project. This is
because a bundle should not pollute the list of autowireable types with
its own services, and to avoid service ids collisions with projects or
other bundles that might do so.

In addition, services not meant to be used by the application directly, should
be :ref:`defined as private <container-private-services>`. For public services,
Expand Down

0 comments on commit 03da816

Please sign in to comment.