|
26 | 26 | use Symfony\Bundle\FrameworkBundle\Routing\AnnotatedRouteControllerLoader;
|
27 | 27 | use Symfony\Bundle\FrameworkBundle\Routing\RouteLoaderInterface;
|
28 | 28 | use Symfony\Bundle\FullStack;
|
| 29 | +use Symfony\Bundle\MercureBundle\MercureBundle; |
29 | 30 | use Symfony\Component\Asset\PackageInterface;
|
30 | 31 | use Symfony\Component\BrowserKit\AbstractBrowser;
|
31 | 32 | use Symfony\Component\Cache\Adapter\AdapterInterface;
|
|
44 | 45 | use Symfony\Component\Console\Command\Command;
|
45 | 46 | use Symfony\Component\DependencyInjection\Alias;
|
46 | 47 | use Symfony\Component\DependencyInjection\Argument\ServiceClosureArgument;
|
47 |
| -use Symfony\Component\DependencyInjection\Argument\ServiceLocatorArgument; |
48 |
| -use Symfony\Component\DependencyInjection\Argument\TaggedIteratorArgument; |
49 | 48 | use Symfony\Component\DependencyInjection\ChildDefinition;
|
50 | 49 | use Symfony\Component\DependencyInjection\Compiler\ServiceLocatorTagPass;
|
51 | 50 | use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
95 | 94 | use Symfony\Component\Mailer\Bridge\Sendgrid\Transport\SendgridTransportFactory;
|
96 | 95 | use Symfony\Component\Mailer\Bridge\Sendinblue\Transport\SendinblueTransportFactory;
|
97 | 96 | use Symfony\Component\Mailer\Mailer;
|
| 97 | +use Symfony\Component\Mercure\HubRegistry; |
98 | 98 | use Symfony\Component\Messenger\Bridge\AmazonSqs\Transport\AmazonSqsTransportFactory;
|
99 | 99 | use Symfony\Component\Messenger\Bridge\Amqp\Transport\AmqpTransportFactory;
|
100 | 100 | use Symfony\Component\Messenger\Bridge\Beanstalkd\Transport\BeanstalkdTransportFactory;
|
@@ -2408,7 +2408,7 @@ private function registerNotifierConfiguration(array $config, ContainerBuilder $
|
2408 | 2408 |
|
2409 | 2409 | if (ContainerBuilder::willBeAvailable('symfony/mercure-notifier', MercureTransportFactory::class, $parentPackages) && ContainerBuilder::willBeAvailable('symfony/mercure-bundle', MercureBundle::class, $parentPackages)) {
|
2410 | 2410 | $container->getDefinition($classToServices[MercureTransportFactory::class])
|
2411 |
| - ->replaceArgument('$publisherLocator', new ServiceLocatorArgument(new TaggedIteratorArgument('mercure.publisher', null, null, true))); |
| 2411 | + ->replaceArgument('$registry', new Reference(HubRegistry::class)); |
2412 | 2412 | } elseif (ContainerBuilder::willBeAvailable('symfony/mercure-notifier', MercureTransportFactory::class, $parentPackages)) {
|
2413 | 2413 | $container->removeDefinition($classToServices[MercureTransportFactory::class]);
|
2414 | 2414 | }
|
|
0 commit comments