8000 bug #48330 [FrameworkBundle] do not wire the MercureTransportFactory … · symfony/symfony@961dcec · GitHub
[go: up one dir, main page]

Skip to content

Commit 961dcec

Browse files
committed
bug #48330 [FrameworkBundle] do not wire the MercureTransportFactory if the MercureBundle is not enabled (xabbuh)
This PR was merged into the 5.4 branch. Discussion ---------- [FrameworkBundle] do not wire the MercureTransportFactory if the MercureBundle is not enabled | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #48305 | License | MIT | Doc PR | Commits ------- 275d2cd do not wire the MercureTransportFactory if the MercureBundle is not enabled
2 parents 1313c45 + 275d2cd commit 961dcec

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