mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-31 20:51:46 +01:00
update docs
This commit is contained in:
parent
420fdef26f
commit
b45549b7ab
@ -1,2 +1,2 @@
|
||||
|
||||
Rector\Sensio\Rector\Use_\ReplaceSensioRouteAnnotationWithSymfonyRector: null
|
||||
services:
|
||||
Rector\Sensio\Rector\ClassMethod\ReplaceSensioRouteAnnotationWithSymfonyRector: null
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user