An open API service indexing awesome lists of open source software.

https://github.com/sulu/sulu-rector

Rector for Sulu CMS.
https://github.com/sulu/sulu-rector

rectorphp refractoring sulucms upgrades

Last synced: 12 days ago
JSON representation

Rector for Sulu CMS.

Awesome Lists containing this project

README

        

# Sulu Rector

This project contains [Rector rules](https://github.com/rectorphp/rector) for [Sulu CMS](https://github.com/sulu/sulu) upgrades.

## Install

Install rector and sulu rector via composer to your project:

```bash
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:

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

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