I am getting a deprecation notice in my Symfony 3.3.13 full-stack application.
Autowiring-types are deprecated since Symfony 3.3 and will be removed in 4.0. Use aliases instead for "Psr\Log\LoggerInterface".
Note that this is coming from Symfony source, not my code.
Clicking "Show Trace" shows that it is in file vendor/symfony/monolog-bundle/DependencyInjection/MonologExtension.php.
The code is:
if (method_exists('Symfony\Component\DependencyInjection\Definition', 'addAutowiringType')) {
$container->getDefinition('monolog.logger')->addAutowiringType('Psr\Log\LoggerInterface');
}
I suspect that I need to update the monolog-bundle version in my composer.json file, but haven't been able to figure out the correct version. It is currently set to "~2.8".