diff --git a/DependencyInjection/Compiler/LoggerChannelPass.php b/DependencyInjection/Compiler/LoggerChannelPass.php index 4c7b147c..b4c513c0 100644 --- a/DependencyInjection/Compiler/LoggerChannelPass.php +++ b/DependencyInjection/Compiler/LoggerChannelPass.php @@ -143,9 +143,7 @@ protected function createLogger(string $channel, string $loggerId, ContainerBuil $this->channels[] = $channel; } - $parameterName = $channel.'Logger'; - - $container->registerAliasForArgument($loggerId, LoggerInterface::class, $parameterName); + $container->registerAliasForArgument($loggerId, LoggerInterface::class, $channel.'.logger'); } /**