@@ -2872,27 +2872,27 @@ private function registerNotifierConfiguration(array $config, ContainerBuilder $
28722872
28732873 if (ContainerBuilder::willBeAvailable ('symfony/mercure-notifier ' , NotifierBridge \Mercure \MercureTransportFactory::class, $ parentPackages ) && ContainerBuilder::willBeAvailable ('symfony/mercure-bundle ' , MercureBundle::class, $ parentPackages ) && \in_array (MercureBundle::class, $ container ->getParameter ('kernel.bundles ' ), true )) {
28742874 $ container ->getDefinition ($ classToServices [NotifierBridge \Mercure \MercureTransportFactory::class])
2875- ->replaceArgument (' $registry ' , new Reference (HubRegistry::class))
2876- ->replaceArgument (' $client ' , new Reference ('http_client ' , ContainerBuilder::NULL_ON_INVALID_REFERENCE ))
2877- ->replaceArgument ( ' $dispatcher ' , new Reference ('event_dispatcher ' , ContainerBuilder::NULL_ON_INVALID_REFERENCE ));
2875+ ->replaceArgument (0 , new Reference (HubRegistry::class))
2876+ ->replaceArgument (1 , new Reference ('event_dispatcher ' , ContainerBuilder::NULL_ON_INVALID_REFERENCE ))
2877+ ->addArgument ( new Reference ('http_client ' , ContainerBuilder::NULL_ON_INVALID_REFERENCE ));
28782878 } elseif (ContainerBuilder::willBeAvailable ('symfony/mercure-notifier ' , NotifierBridge \Mercure \MercureTransportFactory::class, $ parentPackages )) {
28792879 $ container ->removeDefinition ($ classToServices [NotifierBridge \Mercure \MercureTransportFactory::class]);
28802880 }
28812881
28822882 if (ContainerBuilder::willBeAvailable ('symfony/fake-chat-notifier ' , NotifierBridge \FakeChat \FakeChatTransportFactory::class, ['symfony/framework-bundle ' , 'symfony/notifier ' , 'symfony/mailer ' ])) {
28832883 $ container ->getDefinition ($ classToServices [NotifierBridge \FakeChat \FakeChatTransportFactory::class])
2884- ->replaceArgument (' $mailer ' , new Reference ('mailer ' ))
2885- ->replaceArgument (' $logger ' , new Reference ('logger ' ))
2886- ->replaceArgument ( ' $client ' , new Reference ('http_client ' , ContainerBuilder::NULL_ON_INVALID_REFERENCE ))
2887- ->replaceArgument ( ' $dispatcher ' , new Reference ('event_dispatcher ' , ContainerBuilder::NULL_ON_INVALID_REFERENCE ));
2884+ ->replaceArgument (0 , new Reference ('mailer ' ))
2885+ ->replaceArgument (1 , new Reference ('logger ' ))
2886+ ->addArgument ( new Reference ('event_dispatcher ' , ContainerBuilder::NULL_ON_INVALID_REFERENCE ))
2887+ ->addArgument ( new Reference ('http_client ' , ContainerBuilder::NULL_ON_INVALID_REFERENCE ));
28882888 }
28892889
28902890 if (ContainerBuilder::willBeAvailable ('symfony/fake-sms-notifier ' , NotifierBridge \FakeSms \FakeSmsTransportFactory::class, ['symfony/framework-bundle ' , 'symfony/notifier ' , 'symfony/mailer ' ])) {
28912891 $ container ->getDefinition ($ classToServices [NotifierBridge \FakeSms \FakeSmsTransportFactory::class])
2892- ->replaceArgument (' $mailer ' , new Reference ('mailer ' ))
2893- ->replaceArgument (' $logger ' , new Reference ('logger ' ))
2894- ->replaceArgument ( ' $client ' , new Reference ('http_client ' , ContainerBuilder::NULL_ON_INVALID_REFERENCE ))
2895- ->replaceArgument ( ' $dispatcher ' , new Reference ('event_dispatcher ' , ContainerBuilder::NULL_ON_INVALID_REFERENCE ));
2892+ ->replaceArgument (0 , new Reference ('mailer ' ))
2893+ ->replaceArgument (1 , new Reference ('logger ' ))
2894+ ->addArgument ( new Reference ('event_dispatcher ' , ContainerBuilder::NULL_ON_INVALID_REFERENCE ))
2895+ ->addArgument ( new Reference ('http_client ' , ContainerBuilder::NULL_ON_INVALID_REFERENCE ));
28962896 }
28972897
28982898 if (isset ($ config ['admin_recipients ' ])) {
0 commit comments