Skip to content

Commit 313644f

Browse files
committed
[FrameworkBundle] Fix registration of the Scheduler component
1 parent ecd57a6 commit 313644f

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
use Symfony\Component\PropertyInfo\PropertyInfoExtractorInterface;
3838
use Symfony\Component\RateLimiter\Policy\TokenBucketLimiter;
3939
use Symfony\Component\RemoteEvent\RemoteEvent;
40-
use Symfony\Component\Scheduler\Messenger\SchedulerTransportFactory;
40+
use Symfony\Component\Scheduler\Schedule;
4141
use Symfony\Component\Semaphore\Semaphore;
4242
use Symfony\Component\Serializer\Serializer;
4343
use Symfony\Component\Translation\Translator;
@@ -1614,7 +1614,7 @@ private function addSchedulerSection(ArrayNodeDefinition $rootNode, callable $en
16141614
->children()
16151615
->arrayNode('scheduler')
16161616
->info('Scheduler configuration')
1617-
->{$enableIfStandalone('symfony/scheduler', SchedulerTransportFactory::class)}()
1617+
->{$enableIfStandalone('symfony/scheduler', Schedule::class)}()
16181618
->end()
16191619
->end()
16201620
;

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,10 +2015,6 @@ private function registerSchedulerConfiguration(array $config, ContainerBuilder
20152015
throw new LogicException('Scheduler support cannot be enabled as the Scheduler component is not installed. Try running "composer require symfony/scheduler".');
20162016
}
20172017

2018-
if (!interface_exists(MessageBusInterface::class)) {
2019-
throw new LogicException('Scheduler support cannot be enabled as the Messenger component is not installed. Try running "composer require symfony/messenger".');
2020-
}
2021-
20222018
$loader->load('scheduler.php');
20232019
}
20242020

0 commit comments

Comments
 (0)