8000 do not wire the MercureTransportFactory if the MercureBundle is not e… · symfony/symfony@20827b5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 20827b5

Browse files
committed
do not wire the MercureTransportFactory if the MercureBundle is not enabled
1 parent 1313c45 commit 20827b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2587,7 +2587,7 @@ private function registerNotifierConfiguration(array $config, ContainerBuilder $
25872587
}
25882588
}
25892589

2590-
if (ContainerBuilder::willBeAvailable('symfony/mercure-notifier', MercureTransportFactory::class, $parentPackages, true) && ContainerBuilder::willBeAvailable('symfony/mercure-bundle', MercureBundle::class, $parentPackages, true)) {
2590+
if (ContainerBuilder::willBeAvailable('symfony/mercure-notifier', MercureTransportFactory::class, $parentPackages, true) && ContainerBuilder::willBeAvailable('symfony/mercure-bundle', MercureBundle::class, $parentPackages, true) && in_array(MercureBundle::class, $container->getParameter('kernel.bundles'), true)) {
25912591
$container->getDefinition($classToServices[MercureTransportFactory::class])
25922592
->replaceArgument('$registry', new Reference(HubRegistry::class));
25932593
} elseif (ContainerBuilder::willBeAvailable('symfony/mercure-notifier', MercureTransportFactory::class, $parentPackages, true)) {

0 commit comments

Comments
 (0)
0