Skip to content

Commit 4aae265

Browse files
committed
Minor reword
1 parent 03da816 commit 4aae265

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

bundles/best_practices.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -450,12 +450,11 @@ Bundles must be versioned following the `Semantic Versioning Standard`_.
450450
Services
451451
--------
452452

453-
If the bundle defines services, they must be prefixed with the bundle alias.
454-
For example, AcmeBlogBundle services must be prefixed with ``acme_blog``
455-
instead of using fully qualified class names like in a project. This is
456-
because a bundle should not pollute the list of autowireable types with
457-
its own services, and to avoid service ids collisions with projects or
458-
other bundles that might do so.
453+
If the bundle defines services, they must be prefixed with the bundle alias
454+
instead of using fully qualified class names like you do in your project
455+
services. For example, AcmeBlogBundle services must be prefixed with ``acme_blog``.
456+
The reason is that bundles shouldn't rely on features such as service autowiring
457+
or autoconfiguration to not impose an overhead when compiling application services.
459458

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

0 commit comments

Comments
 (0)