update docs

This commit is contained in:
TomasVotruba 2020-06-06 15:07:56 +02:00
parent 420fdef26f
commit b45549b7ab
2 changed files with 28 additions and 4 deletions

View File

@ -1,2 +1,2 @@
Rector\Sensio\Rector\Use_\ReplaceSensioRouteAnnotationWithSymfonyRector: null
services:
Rector\Sensio\Rector\ClassMethod\ReplaceSensioRouteAnnotationWithSymfonyRector: null

View File

@ -1,4 +1,4 @@
# All 502 Rectors Overview
# All 503 Rectors Overview
- [Projects](#projects)
- [General](#general)
@ -57,7 +57,7 @@
- [Renaming](#renaming) (10)
- [Restoration](#restoration) (4)
- [SOLID](#solid) (12)
- [Sensio](#sensio) (1)
- [Sensio](#sensio) (2)
- [StrictCodeQuality](#strictcodequality) (1)
- [Symfony](#symfony) (29)
- [SymfonyCodeQuality](#symfonycodequality) (1)
@ -9627,6 +9627,30 @@ Use interface instead of specific class
## Sensio
### `ReplaceSensioRouteAnnotationWithSymfonyRector`
- class: [`Rector\Sensio\Rector\ClassMethod\ReplaceSensioRouteAnnotationWithSymfonyRector`](/../master/rules/sensio/src/Rector/ClassMethod/ReplaceSensioRouteAnnotationWithSymfonyRector.php)
- [test fixtures](/../master/rules/sensio/tests/Rector/ClassMethod/ReplaceSensioRouteAnnotationWithSymfonyRector/Fixture)
Replace Sensio @Route annotation with Symfony one
```diff
-use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
+use Symfony\Component\Routing\Annotation\Route;
final class SomeClass
{
/**
* @Route()
*/
public function run()
{
}
}
```
<br>
### `TemplateAnnotationRector`
- class: [`Rector\Sensio\Rector\FrameworkExtraBundle\TemplateAnnotationRector`](/../master/rules/sensio/src/Rector/FrameworkExtraBundle/TemplateAnnotationRector.php)