mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-20 07:22:43 +02:00
add EasyAdminBundle 2.0 level
This commit is contained in:
parent
c31dcb18a0
commit
9cb3484b36
9
config/level/easy-corp/easy-admin-bundle20.yml
Normal file
9
config/level/easy-corp/easy-admin-bundle20.yml
Normal file
@ -0,0 +1,9 @@
|
||||
# https://github.com/EasyCorp/EasyAdminBundle/blob/master/UPGRADE-2.0.md
|
||||
services:
|
||||
# first replace ->get("...") by constructor injection in every child of "EasyCorp\Bundle\EasyAdminBundle\AdminController"
|
||||
Rector\Symfony\Rector\FrameworkBundle\GetToConstructorInjectionRector:
|
||||
EasyCorp\Bundle\EasyAdminBundle\AdminController: ~
|
||||
|
||||
# then rename the "EasyCorp\Bundle\EasyAdminBundle\AdminController" class
|
||||
Rector\Rector\Class_\ClassReplacerRector:
|
||||
EasyCorp\Bundle\EasyAdminBundle\AdminController: 'EasyCorp\Bundle\EasyAdminBundle\EasyAdminController'
|
Loading…
x
Reference in New Issue
Block a user