Skip to content

Commit 03e5520

Browse files
committed
feature #1684 [make:schedule] deprecate in favor of recipe (kbond)
This PR was merged into the 1.x branch. Discussion ---------- [make:schedule] deprecate in favor of recipe The recipe for `symfony/scheduler` now creates a default schedule. I think it's super rare that you'd create multiple schedules. Commits ------- 7c4f6bb [make:schedule] deprecate in favor of recipe
2 parents 6ab539c + 7c4f6bb commit 03e5520

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/Maker/MakeSchedule.php

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
/**
3232
* @author Jesse Rushlow <jr@rushlow.dev>
3333
*
34+
* @deprecated since MakerBundle v1.63.0, use symfony/scheduler recipe instead,
35+
*
3436
* @internal
3537
*/
3638
final class MakeSchedule extends AbstractMaker
@@ -64,6 +66,8 @@ public function configureCommand(Command $command, InputConfiguration $inputConf
6466

6567
public function interact(InputInterface $input, ConsoleStyle $io, Command $command): void
6668
{
69+
trigger_deprecation('symfony/maker-bundle', 'v1.63.0', '"make:schedule" is deprecated, install the symfony/scheduler recipe instead.');
70+
6771
if (!class_exists(AsSchedule::class)) {
6872
$io->writeln('Running composer require symfony/scheduler');
6973
$process = Process::fromShellCommandline('composer require symfony/scheduler');

tests/Maker/MakeScheduleTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
use Symfony\Bundle\MakerBundle\Test\MakerTestCase;
1616
use Symfony\Bundle\MakerBundle\Test\MakerTestRunner;
1717

18+
/**
19+
* @group legacy
20+
*/
1821
class MakeScheduleTest extends MakerTestCase
1922
{
2023
protected function getMakerClass(): string

0 commit comments

Comments
 (0)