We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents aa82663 + 0d192c7 commit 251414eCopy full SHA for 251414e
bundles/best_practices.rst
@@ -476,6 +476,13 @@ can be used for autowiring.
476
Services should not use autowiring or autoconfiguration. Instead, all services should
477
be defined explicitly.
478
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
486
.. seealso::
487
488
You can learn much more about service loading in bundles reading this article:
0 commit comments