File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Original file line number Diff line number Diff line change 5
5
use Rector \Config \RectorConfig ;
6
6
use Rector \Renaming \Rector \FuncCall \RenameFunctionRector ;
7
7
use Rector \Renaming \Rector \MethodCall \RenameMethodRector ;
8
+ use Rector \Renaming \Rector \Name \RenameClassRector ;
8
9
use Rector \Renaming \ValueObject \MethodCallRename ;
9
10
use Rector \Symfony \Rector \ClassMethod \ConsoleExecuteReturnIntRector ;
10
11
use Rector \Symfony \Rector \MethodCall \AuthorizationCheckerIsGrantedExtractorRector ;
18
19
# https://github.com/symfony/symfony/blob/4.4/UPGRADE-4.4.md#security
19
20
$ rectorConfig ->rule (AuthorizationCheckerIsGrantedExtractorRector::class);
20
21
22
+ $ rectorConfig ->ruleWithConfiguration (RenameClassRector::class, [
23
+ 'Symfony\Component\Templating\EngineInterface ' => 'Twig\Environment ' ,
24
+ ]);
25
+
21
26
$ rectorConfig ->ruleWithConfiguration (RenameFunctionRector::class, [
22
27
'Symfony\Component\DependencyInjection\Loader\Configurator\tagged ' => 'Symfony\Component\DependencyInjection\Loader\Configurator\tagged_iterator ' ,
23
28
]);
You can’t perform that action at this time.
0 commit comments