mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-29 11:33:33 +01:00
README: fix use [skip ci]
This commit is contained in:
parent
6545316148
commit
1987c9058f
20
README.md
20
README.md
@ -21,11 +21,25 @@ At the moment these packages are supported:
|
||||
composer require rector/rector --dev
|
||||
```
|
||||
|
||||
## Use (WIP)
|
||||
## How To Reconstruct your Code?
|
||||
|
||||
1. Create `rector.yml` with desired Rectors
|
||||
|
||||
```yml
|
||||
rectors:
|
||||
- Rector\Rector\Contrib\Nette\InjectPropertyRector
|
||||
```
|
||||
|
||||
2. Run rector on your `/src` directory
|
||||
|
||||
```bash
|
||||
vendor/bin/rector reconstruct src --level=nette24
|
||||
vendor/bin/rector reconstruct src --level=symfony40
|
||||
vendor/bin/rector process src
|
||||
```
|
||||
|
||||
3. Check the Git
|
||||
|
||||
```
|
||||
git diff
|
||||
```
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user