PHP 8.2.31
Preview: symfony54.php Size: 3.80 KB
/opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/rector/rector-symfony/config/sets/symfony/symfony54.php

<?php

declare (strict_types=1);
namespace RectorPrefix202411;

use Rector\Config\RectorConfig;
use Rector\Php80\Rector\Class_\AnnotationToAttributeRector;
use Rector\Php80\ValueObject\AnnotationToAttribute;
use Rector\Renaming\Rector\ClassConstFetch\RenameClassConstFetchRector;
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
use Rector\Renaming\Rector\Name\RenameClassRector;
use Rector\Renaming\ValueObject\MethodCallRename;
use Rector\Renaming\ValueObject\RenameClassAndConstFetch;
use Rector\Renaming\ValueObject\RenameClassConstFetch;
use Rector\Symfony\Set\SymfonySetList;
# https://github.com/symfony/symfony/blob/5.x/UPGRADE-5.4.md
return static function (RectorConfig $rectorConfig) : void {
    $rectorConfig->sets([SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES]);
    // @see https://symfony.com/blog/new-in-symfony-5-4-nested-validation-attributes
    // @see https://github.com/symfony/symfony/pull/41994
    $rectorConfig->ruleWithConfiguration(AnnotationToAttributeRector::class, [new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\All'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\Collection'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\AtLeastOneOf'), new AnnotationToAttribute('Symfony\\Component\\Validator\\Constraints\\Sequentially')]);
    $rectorConfig->ruleWithConfiguration(RenameMethodRector::class, [
        // @see https://github.com/symfony/symfony/pull/42582
        new MethodCallRename('Symfony\\Bundle\\SecurityBundle\\Security\\FirewallConfig', 'getListeners', 'getAuthenticators'),
        // @see https://github.com/symfony/symfony/pull/41754
        new MethodCallRename('Symfony\\Bundle\\SecurityBundle\\DependencyInjection\\SecurityExtension', 'addSecurityListenerFactory', 'addAuthenticatorFactory'),
    ]);
    $rectorConfig->ruleWithConfiguration(RenameClassConstFetchRector::class, [
        new RenameClassAndConstFetch('Symfony\\Component\\Security\\Core\\AuthenticationEvents', 'AUTHENTICATION_SUCCESS', 'Symfony\\Component\\Security\\Core\\Event\\AuthenticationSuccessEvent', 'class'),
        new RenameClassAndConstFetch('Symfony\\Component\\Security\\Core\\AuthenticationEvents', 'AUTHENTICATION_FAILURE', 'Symfony\\Component\\Security\\Core\\Event\\AuthenticationFailureEvent', 'class'),
        // @see https://github.com/symfony/symfony/pull/42510
        new RenameClassConstFetch('Symfony\\Component\\Security\\Core\\Authorization\\Voter\\AuthenticatedVoter', 'IS_ANONYMOUS', 'PUBLIC_ACCESS'),
        new RenameClassConstFetch('Symfony\\Component\\Security\\Core\\Authorization\\Voter\\AuthenticatedVoter', 'IS_AUTHENTICATED_ANONYMOUSLY', 'PUBLIC_ACCESS'),
    ]);
    $rectorConfig->ruleWithConfiguration(RenameClassRector::class, [
        // @see https://github.com/symfony/symfony/pull/42050
        'Symfony\\Component\\Security\\Http\\Event\\DeauthenticatedEvent' => 'Symfony\\Component\\Security\\Http\\Event\\TokenDeauthenticatedEvent',
        // @see https://github.com/symfony/symfony/pull/42965
        'Symfony\\Component\\Cache\\Adapter\\DoctrineAdapter' => 'Doctrine\\Common\\Cache\\Psr6\\CacheAdapter',
        // @see https://github.com/symfony/symfony/pull/45615
        'Symfony\\Component\\HttpKernel\\EventListener\\AbstractTestSessionListener' => 'Symfony\\Component\\HttpKernel\\EventListener\\AbstractSessionListener',
        'Symfony\\Component\\HttpKernel\\EventListener\\TestSessionListener' => 'Symfony\\Component\\HttpKernel\\EventListener\\SessionListener',
        // @see https://github.com/symfony/symfony/pull/44271
        'Symfony\\Component\\Notifier\\Bridge\\Nexmo\\NexmoTransportFactory' => 'Symfony\\Component\\Notifier\\Bridge\\Vonage\\VonageTransportFactory',
        'Symfony\\Component\\Notifier\\Bridge\\Nexmo\\NexmoTransport' => 'Symfony\\Component\\Notifier\\Bridge\\Vonage\\VonageTransport',
    ]);
};

Directory Contents

Dirs: 1 × Files: 32

Name Size Perms Modified Actions
symfony6 DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
1.08 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
811 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.57 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
571 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
448 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
285 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1022 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.53 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
11.29 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.19 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
458 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
2.78 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.02 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1018 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
2.71 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
5.72 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
6.65 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.84 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
11.80 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
875 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
5.38 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
5.88 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
6.18 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
5.27 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
3.80 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
2.66 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.61 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
6.12 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.99 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.33 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
2.17 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.01 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).