File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -185,15 +185,15 @@ by type-hinting your service arguments with the following syntax:
185
185
``Psr\Log\LoggerInterface $<channel>Logger ``. The ``<channel> `` must have been
186
186
:ref: `predefined in your Monolog configuration <monolog-channels-config >`.
187
187
188
- For example to inject the service related to the ``app `` logger channel,
188
+ For example to inject the service related to the ``foo_bar `` logger channel,
189
189
change your constructor like this:
190
190
191
191
.. code-block :: diff
192
192
193
193
- public function __construct(LoggerInterface $logger)
194
- + public function __construct(LoggerInterface $appLogger )
194
+ + public function __construct(LoggerInterface $fooBarLogger )
195
195
{
196
- $this->logger = $appLogger ;
196
+ $this->logger = $fooBarLogger ;
197
197
}
198
198
199
199
.. _`MonologBundle` : https://github.com/symfony/monolog-bundle
You can’t perform that action at this time.
0 commit comments