Skip to content

Commit 0f9e712

Browse files
authored
[symfony 73] split of configs per package (#751)
1 parent 530427c commit 0f9e712

4 files changed

Lines changed: 30 additions & 5 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Rector\Config\RectorConfig;
6+
7+
// @see https://github.com/symfony/symfony/blame/7.3/UPGRADE-7.3.md
8+
9+
return static function (RectorConfig $rectorConfig): void {
10+
$rectorConfig->import(__DIR__ . '/symfony73/symfony73-console.php');
11+
};

config/sets/symfony/symfony73.php renamed to config/sets/symfony/symfony7/symfony73/symfony73-console.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
use Rector\Symfony\Symfony73\Rector\Class_\CommandHelpToAttributeRector;
77
use Rector\Symfony\Symfony73\Rector\Class_\InvokableCommandInputAttributeRector;
88

9-
// @see https://github.com/symfony/symfony/blame/7.3/UPGRADE-7.3.md
10-
11-
return RectorConfig::configure()
12-
->withRules([CommandHelpToAttributeRector::class, InvokableCommandInputAttributeRector::class]);
9+
return static function (RectorConfig $rectorConfig): void {
10+
$rectorConfig->rules([
11+
CommandHelpToAttributeRector::class, InvokableCommandInputAttributeRector::class
12+
]);
13+
};

src/Set/SetProvider/Symfony7SetProvider.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,19 @@ public function provide(): array
7979
'7.2',
8080
__DIR__ . '/../../../config/sets/symfony/symfony7/symfony72/symfony72-serializer.php'
8181
),
82+
83+
new ComposerTriggeredSet(
84+
SetGroup::SYMFONY,
85+
'symfony/symfony',
86+
'7.3',
87+
__DIR__ . '/../../../config/sets/symfony/symfony7/symfony73.php'
88+
),
89+
new ComposerTriggeredSet(
90+
SetGroup::SYMFONY,
91+
'symfony/console',
92+
'7.2',
93+
__DIR__ . '/../../../config/sets/symfony/symfony7/symfony73/symfony73-console.php'
94+
),
8295
];
8396
}
8497
}

src/Set/SymfonySetList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ final class SymfonySetList
165165
/**
166166
* @var string
167167
*/
168-
final public const SYMFONY_73 = __DIR__ . '/../../config/sets/symfony/symfony73.php';
168+
final public const SYMFONY_73 = __DIR__ . '/../../config/sets/symfony/symfony7/symfony73.php';
169169

170170
/**
171171
* @var string

0 commit comments

Comments
 (0)