add PseudonamespaceToNamespaceRector to README

This commit is contained in:
TomasVotruba 2017-10-16 22:06:59 +02:00
parent fba26692b8
commit 0b5126c4b9
2 changed files with 9 additions and 4 deletions

View File

@ -125,7 +125,7 @@ You can:
'BetterReflection': 'Roave\BetterReflection'
```
- or **change method name**
- **change method name**
```yml
# nette24.yml
@ -137,6 +137,14 @@ You can:
'add': 'addHtml'
```
- or **replace underscore naming `_` with namespaces `\`**
```yml
rectors:
Rector\Roector\Dynamic\PseudoNamespaceToNamespaceRector:
# old namespace prefix
- 'PHPUnit_'
```
### READMEs for Subpackages

View File

@ -17,10 +17,7 @@ use Rector\Rector\AbstractRector;
/**
* Basically inversion of https://github.com/nikic/PHP-Parser/blob/master/doc/2_Usage_of_basic_components.markdown#example-converting-namespaced-code-to-pseudo-namespaces
*
*
* Requested on SO: https://stackoverflow.com/questions/29014957/converting-pseudo-namespaced-classes-to-use-real-namespace
*
* @todo might handle current @see phpunit60.yml @see \Rector\Rector\Dynamic\NamespaceReplacerRector
*/
final class PseudoNamespaceToNamespaceRector extends AbstractRector
{