Skip to content

Commit

Permalink
inject the missing logger service
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Jun 17, 2024
1 parent 7abc106 commit caee5b9
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2855,6 +2855,11 @@ private function registerNotifierConfiguration(array $config, ContainerBuilder $
->addArgument(new Reference('http_client', ContainerBuilder::NULL_ON_INVALID_REFERENCE));
}

if (ContainerBuilder::willBeAvailable('symfony/bluesky-notifier', NotifierBridge\Bluesky\BlueskyTransportFactory::class, ['symfony/framework-bundle', 'symfony/notifier'])) {
$container->getDefinition($classToServices[NotifierBridge\Bluesky\BlueskyTransportFactory::class])
->addArgument(new Reference('logger'));
}

if (isset($config['admin_recipients'])) {
$notifier = $container->getDefinition('notifier');
foreach ($config['admin_recipients'] as $i => $recipient) {
Expand Down

0 comments on commit caee5b9

Please sign in to comment.