8000 bug #49819 [FrameworkBundle] remove scheduler debug command definitio… · fancyweb/symfony@497e966 · GitHub
[go: up one dir, main page]

Skip to content

Commit 497e966

Browse files
committed
bug symfony#49819 [FrameworkBundle] remove scheduler debug command definition if the component is not installed (xabbuh)
This PR was merged into the 6.3 branch. Discussion ---------- [FrameworkBundle] remove scheduler debug command definition if the component is not installed | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix symfony#49818 | License | MIT | Doc PR | Commits ------- 0379975 remove scheduler debug command definition if the component is not installed
2 parents 5e6ea11 + 0379975 commit 497e966

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,8 @@ public function load(array $configs, ContainerBuilder $container)
536536
throw new LogicException('Scheduler support cannot be enabled as the Messenger component is not '.(interface_exists(MessageBusInterface::class) ? 'enabled.' : 'installed. Try running "composer require symfony/messenger".'));
537537
}
538538
$this->registerSchedulerConfiguration($config['scheduler'], $container, $loader);
539+
} else {
540+
$container->removeDefinition('console.command.scheduler_debug');
539541
}
540542

541543
// messenger depends on validation being registered

0 commit comments

Comments
 (0)
0