Skip to content

Commit effe05f

Browse files
authored
[Symfony74] update WorkflowDumpCommand namespace (#861)
* [Symfony74] update WorkflowDumpCommand namespace * register new rule in Symfony7SetProvider
1 parent a470609 commit effe05f

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

config/sets/symfony/symfony7/symfony74.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010
$rectorConfig->import(__DIR__ . '/symfony74/symfony74-console.php');
1111
$rectorConfig->import(__DIR__ . '/symfony74/symfony74-framework-bundle.php');
1212
$rectorConfig->import(__DIR__ . '/symfony74/symfony74-routing.php');
13+
$rectorConfig->import(__DIR__ . '/symfony74/symfony74-workflow.php');
1314
};
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Rector\Config\RectorConfig;
6+
use Rector\Renaming\Rector\Name\RenameClassRector;
7+
8+
return static function (RectorConfig $rectorConfig): void {
9+
// @see https://github.com/symfony/symfony/blob/7.4/UPGRADE-7.4.md#frameworkbundle
10+
$rectorConfig->ruleWithConfiguration(
11+
RenameClassRector::class,
12+
[
13+
'Symfony\Bundle\FrameworkBundle\Command\WorkflowDumpCommand' => 'Symfony\Component\Workflow\Command\WorkflowDumpCommand',
14+
],
15+
);
16+
};

src/Set/SetProvider/Symfony7SetProvider.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,12 @@ public function provide(): array
135135
'7.4',
136136
__DIR__ . '/../../../config/sets/symfony/symfony7/symfony74/symfony74-routing.php'
137137
),
138+
new ComposerTriggeredSet(
139+
SetGroup::SYMFONY,
140+
'symfony/workflow',
141+
'7.4',
142+
__DIR__ . '/../../../config/sets/symfony/symfony7/symfony74/symfony74-workflow.php'
143+
),
138144
];
139145
}
140146
}

0 commit comments

Comments
 (0)