Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 313644f

Browse filesBrowse files
committed
[FrameworkBundle] Fix registration of the Scheduler component
1 parent ecd57a6 commit 313644f
Copy full SHA for 313644f

File tree

Expand file treeCollapse file tree

2 files changed

+2
-6
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-6
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
+2-2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
-4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.