Skip to content

Commit f4c03e2

Browse files
committed
Merge branch '4.3' into 4.4
* 4.3: Add explanation about prefix decision
2 parents 1963f36 + 4aae265 commit f4c03e2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bundles/best_practices.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +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``.
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.
455458

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

0 commit comments

Comments
 (0)