rector/rector-nette-to-symfony

This package is abandoned and no longer maintained. No replacement package was suggested.

Generate Rector rules from command line

Fund package maintenance!
tomasvotruba

Installs: 94 696

Dependents: 0

Suggesters: 0

Security: 0

Stars: 8

Watchers: 4

Forks: 0

Type:rector-extension

0.11.5 2021-06-24 16:29 UTC

This package is auto-updated.

Last update: 2021-06-25 17:05:58 UTC


README

See https://github.com/rectorphp/rector-src/pull/290 for deprecation


Do you need to migrate from Nette to Symfony? You can ↓

3 part series in more depth:

See available rules

Install

This package is already part of rector/rector package, so it works out of the box.

All you need to do is install the main package, and you're good to go:

composer require rector/rector --dev

Use Sets

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

use Rector\NetteToSymfony\Set\NetteToSymfonySetList;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

return static function (ContainerConfigurator $containerConfigurator): void {
    $containerConfigurator->import(NetteToSymfonySetList::NETTE_TO_SYMFONY);
};

Read a First Book About Rector

Are you curious, how Rector works internally, how to create your own rules and test them and why Rector was born? In May 2021 we've released the very first book: Rector - The Power of Automated Refactoring.

book_title.png

By buying a book you directly support maintainers who are working on Rector.


Support

Rector is a tool that we develop and share for free, so anyone can automate their refactoring. But not everyone has dozens of hours to understand complexity of abstract-syntax-tree in their own time. That's why we provide commercial support - to save your time.

Would you like to apply Rector on your code base but don't have time for the struggle with your project? Hire us to get there faster.