mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-26 04:42:36 +00:00
update README
This commit is contained in:
parent
a80d125877
commit
0967ec6052
29
README.md
29
README.md
|
@ -208,23 +208,26 @@ rectors:
|
||||||
'code': 'string'
|
'code': 'string'
|
||||||
```
|
```
|
||||||
|
|
||||||
### Change a argument value
|
### Change argument value or remove argument
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
rectors:
|
rectors:
|
||||||
Rector\Rector\Dynamic\ArgumentReplacerRector:
|
Rector\Rector\Dynamic\ArgumentReplacerRector:
|
||||||
# class
|
-
|
||||||
'Symfony\Component\DependencyInjection\ContainerBuilder':
|
class: 'Symfony\Component\DependencyInjection\ContainerBuilder'
|
||||||
# method
|
method: 'compile'
|
||||||
'compile':
|
position: 0
|
||||||
# argument position
|
# change default value
|
||||||
0:
|
type: 'changed'
|
||||||
# added default value
|
default_value: false
|
||||||
'~': false
|
|
||||||
# or remove completely
|
# or remove
|
||||||
'~': ~
|
type: 'removed'
|
||||||
# or replace by new value
|
|
||||||
'Symfony\Component\DependencyInjection\ContainerBuilder\ContainerBuilder::SCOPE_PROTOTYPE': false
|
# or replace old default value by new one
|
||||||
|
type: 'replace_default_value'
|
||||||
|
replace_map:
|
||||||
|
'Symfony\Component\DependencyInjection\ContainerBuilder::SCOPE_PROTOTYPE': false
|
||||||
```
|
```
|
||||||
|
|
||||||
### Replace the underscore naming `_` with namespaces `\`
|
### Replace the underscore naming `_` with namespaces `\`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user