update README

This commit is contained in:
TomasVotruba 2018-02-13 22:28:08 +01:00
parent a80d125877
commit 0967ec6052

View File

@ -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 `\`