We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74c2f40 commit c3218acCopy full SHA for c3218ac
logging/channels_handlers.rst
@@ -182,8 +182,8 @@ How to Autowire Logger Channels
182
183
Starting from `MonologBundle`_ 3.5 you can autowire different Monolog channels
184
by type-hinting your service arguments with the following syntax:
185
-``Psr\Log\LoggerInterface $<channel>Logger``. The ``<channel>`` must have been
186
-:ref:`predefined in your Monolog configuration <monolog-channels-config>`.
+``Psr\Log\LoggerInterface $<camelCased channel name> + Logger``. The ``<channel>``
+must have been :ref:`predefined in your Monolog configuration <monolog-channels-config>`.
187
188
For example to inject the service related to the ``foo_bar`` logger channel,
189
change your constructor like this:
0 commit comments