sulu/sulu-rector

Rector upgrades rules for Sulu CMS

Installs: 97 662

Dependents: 8

Suggesters: 0

Security: 0

Stars: 12

Watchers: 7

Forks: 2

Open Issues: 6

Type:rector-extension

1.0.0 2024-02-07 10:05 UTC

This package is auto-updated.

Last update: 2024-02-07 10:48:32 UTC


README

This project contains Rector rules for Sulu CMS upgrades.

Install

Install rector and sulu rector via composer to your project:

composer require rector/rector --dev
composer require sulu/sulu-rector --dev

Use Sets

To add a set to your config, use Sulu\Rector\Set\SymfonySetList and Sulu\Rector\Set\SuluLevelSetList class and pick one of constants:

use Sulu\Rector\Set\SuluLevelSetList;
use Rector\Config\RectorConfig;

return static function (RectorConfig $rectorConfig): void {
    $rectorConfig->sets([
        SuluLevelSetList::UP_TO_SULU_25,
    ]);
};