Skip to content

Commit 58b98dc

Browse files
authored
Merge pull request #505 from nicolas-grekas/autow-target
Improve named autowiring targets
2 parents 33bf5ca + 2d8c27a commit 58b98dc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

DependencyInjection/Compiler/LoggerChannelPass.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,7 @@ protected function createLogger(string $channel, string $loggerId, ContainerBuil
143143
$this->channels[] = $channel;
144144
}
145145

146-
$parameterName = $channel.'Logger';
147-
148-
$container->registerAliasForArgument($loggerId, LoggerInterface::class, $parameterName);
146+
$container->registerAliasForArgument($loggerId, LoggerInterface::class, $channel.'.logger');
149147
}
150148

151149
/**

0 commit comments

Comments
 (0)