File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -182,10 +182,11 @@ How to Autowire Logger Channels
182
182
183
183
Starting from `MonologBundle `_ 3.5 you can autowire different Monolog channels
184
184
by type-hinting your service arguments with the following syntax:
185
- ``Psr\Log\LoggerInterface $<channel>Logger ``. The ``<channel> `` must have been
186
- predefined in your Monolog configuration.
185
+ ``Psr\Log\LoggerInterface $<channel>Logger ``. The ``<channel> `` must have been
186
+ :ref: ` predefined in your Monolog configuration < monolog-channels-config >` .
187
187
188
- An example to inject the service related to the ``app `` logger channel:
188
+ For example to inject the service related to the ``app `` logger channel,
189
+ change your constructor like this:
189
190
190
191
.. code-block :: diff
191
192
You can’t perform that action at this time.
0 commit comments