Skip to content

Commit 251414e

Browse files
committed
Merge branch '5.4' into 6.3
* 5.4: [Bundle] add tip for marking internal services as hidden
2 parents aa82663 + 0d192c7 commit 251414e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bundles/best_practices.rst

+7
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,13 @@ can be used for autowiring.
476476
Services should not use autowiring or autoconfiguration. Instead, all services should
477477
be defined explicitly.
478478

479+
.. tip::
480+
481+
If there is no intention for the service id to be used by the end user, you can
482+
mark it as *hidden* by prefixing it with a dot (e.g. ``.acme_blog.logger``).
483+
This prevents the service from being listed in the default ``debug:container``
484+
command output.
485+
479486
.. seealso::
480487

481488
You can learn much more about service loading in bundles reading this article:

0 commit comments

Comments
 (0)