mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-21 16:02:23 +02:00
docs(readme): update docker
This commit is contained in:
parent
713c92c122
commit
cc822f3d60
13
README.md
13
README.md
@ -319,7 +319,7 @@ We would be happy to merge your feature then.
|
||||
With this command, you can process your project with rector from docker:
|
||||
|
||||
```bash
|
||||
docker run -v $(pwd):/project rector/rector:latest process project/src --level symfony40 --dry-run
|
||||
docker run -v $(pwd):/project rector/rector:latest process /project/src --level symfony40 --dry-run
|
||||
|
||||
# Note that a volume is mounted from `pwd` into `/project` which can be accessed later.
|
||||
```
|
||||
@ -327,14 +327,5 @@ docker run -v $(pwd):/project rector/rector:latest process project/src --level s
|
||||
Using `rector.yaml`:
|
||||
|
||||
```bash
|
||||
docker run --rm -v $(pwd):/project -t rector process project/src --config project/rector.yaml --dry-run
|
||||
docker run -v $(pwd):/project rector/rector:latest process /project/app --config /project/rector.yaml --autoload-file /project/vendor/autoload.php --dry-run
|
||||
```
|
||||
|
||||
```yaml
|
||||
parameters:
|
||||
autoload_paths:
|
||||
- 'project/vendor/autoload.php'
|
||||
services:
|
||||
Rector\Rector\Architecture\DependencyInjection\AnnotatedPropertyInjectToConstructorInjectionRector:
|
||||
$annotation: "inject"
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user