You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($this->readConfigEnabled('scheduler', $container, $config['scheduler'])) {
534
+
if (!$messengerEnabled) {
535
+
thrownewLogicException('Scheduler support cannot be enabled as the Messenger component is not '.(interface_exists(MessageBusInterface::class) ? 'enabled.' : 'installed. Try running "composer require symfony/messenger".'));
if (!class_exists(SchedulerTransportFactory::class)) {
2014
+
thrownewLogicException('Scheduler support cannot be enabled as the Scheduler component is not installed. Try running "composer require symfony/scheduler".');
2015
+
}
2016
+
2017
+
if (!interface_exists(MessageBusInterface::class)) {
2018
+
thrownewLogicException('Scheduler support cannot be enabled as the Messenger component is not installed. Try running "composer require symfony/messenger".');
if (!interface_exists(MessageBusInterface::class)) {
2005
2027
thrownewLogicException('Messenger support cannot be enabled as the Messenger component is not installed. Try running "composer require symfony/messenger".');
@@ -2031,10 +2053,6 @@ private function registerMessengerConfiguration(array $config, ContainerBuilder
if (ContainerBuilder::willBeAvailable('symfony/scheduler', ScheduleTransportFactory::class, ['symfony/framework-bundle', 'symfony/messenger'])) {
2035
-
$loader->load('scheduler.php');
2036
-
}
2037
-
2038
2056
if (null === $config['default_bus'] && 1 === \count($config['buses'])) {
2039
2057
$config['default_bus'] = key($config['buses']);
2040
2058
}
@@ -2065,7 +2083,7 @@ private function registerMessengerConfiguration(array $config, ContainerBuilder
2065
2083
}
2066
2084
2067
2085
foreach ($middlewareas$middlewareItem) {
2068
-
if (!$validationConfig['enabled'] && \in_array($middlewareItem['id'], ['validation', 'messenger.middleware.validation'], true)) {
2086
+
if (!$validationEnabled && \in_array($middlewareItem['id'], ['validation', 'messenger.middleware.validation'], true)) {
2069
2087
thrownewLogicException('The Validation middleware is only available when the Validator component is installed and enabled. Try running "composer require symfony/validator".');
2070
2088
}
2071
2089
}
@@ -2091,7 +2109,6 @@ private function registerMessengerConfiguration(array $config, ContainerBuilder
0 commit comments