Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/sets/symfony/symfony7/symfony70.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
$rectorConfig->import(__DIR__ . '/symfony70/symfony70-serializer.php');
$rectorConfig->import(__DIR__ . '/symfony70/symfony70-http-foundation.php');
$rectorConfig->import(__DIR__ . '/symfony70/symfony70-contracts.php');
$rectorConfig->import(__DIR__ . '/symfony70/symfony70-routing.php');
};
16 changes: 16 additions & 0 deletions config/sets/symfony/symfony7/symfony70/symfony70-routing.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a copy of config/sets/symfony/symfony6/symfony64/symfony64-routing.php. If preferred, I could import that file into the other files instead.


declare(strict_types=1);

use Rector\Config\RectorConfig;
use Rector\Renaming\Rector\Class_\RenameAttributeRector;
use Rector\Renaming\ValueObject\RenameAttribute;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->ruleWithConfiguration(RenameAttributeRector::class, [
new RenameAttribute(
'Symfony\Component\Routing\Annotation\Route',
'Symfony\Component\Routing\Attribute\Route',
),
]);
};
6 changes: 6 additions & 0 deletions src/Set/SetProvider/Symfony7SetProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ public function provide(): array
'7.0',
__DIR__ . '/../../../config/sets/symfony/symfony7/symfony70/symfony70-contracts.php'
),
new ComposerTriggeredSet(
SetGroup::SYMFONY,
'symfony/routing',
'7.0',
__DIR__ . '/../../../config/sets/symfony/symfony7/symfony70/symfony70-routing.php'
),

new ComposerTriggeredSet(
SetGroup::SYMFONY,
Expand Down