Skip to content

Commit c3218ac

Browse files
committed
Tweak
1 parent 74c2f40 commit c3218ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

logging/channels_handlers.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ How to Autowire Logger Channels
182182

183183
Starting from `MonologBundle`_ 3.5 you can autowire different Monolog channels
184184
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>`.
185+
``Psr\Log\LoggerInterface $<camelCased channel name> + Logger``. The ``<channel>``
186+
must have been :ref:`predefined in your Monolog configuration <monolog-channels-config>`.
187187

188188
For example to inject the service related to the ``foo_bar`` logger channel,
189189
change your constructor like this:

0 commit comments

Comments
 (0)