add EasyAdminBundle 2.0 level

This commit is contained in:
Tomas Votruba 2018-12-18 18:59:32 +01:00
parent c31dcb18a0
commit 9cb3484b36

View 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'