From 6146bfdbf232b2d41e7dd01414b99505f4408b0e Mon Sep 17 00:00:00 2001 From: Jules Pietri Date: Fri, 4 Aug 2023 10:56:46 +0200 Subject: [PATCH] [DependencyInjection] Mention `debug:autowiring` command with argument --- service_container.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/service_container.rst b/service_container.rst index 5065effb976..5b15dd83356 100644 --- a/service_container.rst +++ b/service_container.rst @@ -694,6 +694,12 @@ But, you can control this and pass in a different logger: This tells the container that the ``$logger`` argument to ``__construct`` should use service whose id is ``monolog.logger.request``. +For a list of possible logger services that can be used with autowiring, run: + +.. code-block:: terminal + + $ php bin/console debug:autowiring logger + .. _container-debug-container: For a full list of *all* possible services in the container, run: