Skip to content

Commit 3b777e2

Browse files
committed
wire a clock for the BlueSky transport in the FrameworkBundle
1 parent 0100795 commit 3b777e2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2865,6 +2865,12 @@ private function registerNotifierConfiguration(array $config, ContainerBuilder $
28652865
->addArgument(new Reference('http_client', ContainerBuilder::NULL_ON_INVALID_REFERENCE));
28662866
}
28672867

2868+
if (ContainerBuilder::willBeAvailable('symfony/bluesky-notifier', NotifierBridge\Bluesky\BlueskyTransportFactory::class, ['symfony/framework-bundle', 'symfony/notifier'])) {
2869+
$container->getDefinition($classToServices[NotifierBridge\Bluesky\BlueskyTransportFactory::class])
2870+
->addArgument(new Reference('logger'))
2871+
->addArgument(new Reference('clock', ContainerBuilder::NULL_ON_INVALID_REFERENCE));
2872+
}
2873+
28682874
if (isset($config['admin_recipients'])) {
28692875
$notifier = $container->getDefinition('notifier');
28702876
foreach ($config['admin_recipients'] as $i => $recipient) {

0 commit comments

Comments
 (0)