Skip to content

Commit ad93ade

Browse files
authored
Extract to symfony-core and symfony-http on 5.4 (#741)
1 parent 5ff23b0 commit ad93ade

File tree

4 files changed

+24
-9
lines changed

4 files changed

+24
-9
lines changed

config/sets/symfony/symfony5/symfony54.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111

1212
$rectorConfig->import(__DIR__ . '/symfony54/symfony54-validator.php');
1313
$rectorConfig->import(__DIR__ . '/symfony54/symfony54-security-bundle.php');
14-
$rectorConfig->import(__DIR__ . '/symfony54/symfony54-security.php');
14+
$rectorConfig->import(__DIR__ . '/symfony54/symfony54-security-core.php');
15+
$rectorConfig->import(__DIR__ . '/symfony54/symfony54-security-http.php');
1516
$rectorConfig->import(__DIR__ . '/symfony54/symfony54-cache.php');
1617
$rectorConfig->import(__DIR__ . '/symfony54/symfony54-http-kernel.php');
1718
$rectorConfig->import(__DIR__ . '/symfony54/symfony54-notifier.php');

config/sets/symfony/symfony5/symfony54/symfony54-security.php renamed to config/sets/symfony/symfony5/symfony54/symfony54-security-core.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Rector\Config\RectorConfig;
66
use Rector\Renaming\Rector\ClassConstFetch\RenameClassConstFetchRector;
7-
use Rector\Renaming\Rector\Name\RenameClassRector;
87
use Rector\Renaming\ValueObject\RenameClassAndConstFetch;
98
use Rector\Renaming\ValueObject\RenameClassConstFetch;
109

@@ -34,9 +33,4 @@
3433
'PUBLIC_ACCESS'
3534
),
3635
]);
37-
38-
$rectorConfig->ruleWithConfiguration(RenameClassRector::class, [
39-
// @see https://github.com/symfony/symfony/pull/42050
40-
'Symfony\Component\Security\Http\Event\DeauthenticatedEvent' => 'Symfony\Component\Security\Http\Event\TokenDeauthenticatedEvent',
41-
]);
4236
};
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
$rectorConfig->ruleWithConfiguration(RenameClassRector::class, [
10+
// @see https://github.com/symfony/symfony/pull/42050
11+
'Symfony\Component\Security\Http\Event\DeauthenticatedEvent' => 'Symfony\Component\Security\Http\Event\TokenDeauthenticatedEvent',
12+
]);
13+
};

src/Set/SetProvider/Symfony5SetProvider.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,16 @@ public function provide(): array
272272

273273
new ComposerTriggeredSet(
274274
SetGroup::SYMFONY,
275-
'symfony/security-bundle',
275+
'symfony/security-core',
276+
'5.4',
277+
__DIR__ . '/../../../config/sets/symfony/symfony5/symfony54/symfony54-security-core.php'
278+
),
279+
280+
new ComposerTriggeredSet(
281+
SetGroup::SYMFONY,
282+
'symfony/security-http',
276283
'5.4',
277-
__DIR__ . '/../../../config/sets/symfony/symfony5/symfony54/symfony54-security.php'
284+
__DIR__ . '/../../../config/sets/symfony/symfony5/symfony54/symfony54-security-http.php'
278285
),
279286

280287
new ComposerTriggeredSet(

0 commit comments

Comments
 (0)