Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c5abb44

Browse filesBrowse files
committed
add twig render interface
1 parent 534ad82 commit c5abb44
Copy full SHA for c5abb44

File tree

Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed

‎config/sets/symfony/symfony44.php

Copy file name to clipboardExpand all lines: config/sets/symfony/symfony44.php
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Rector\Config\RectorConfig;
66
use Rector\Renaming\Rector\FuncCall\RenameFunctionRector;
77
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
8+
use Rector\Renaming\Rector\Name\RenameClassRector;
89
use Rector\Renaming\ValueObject\MethodCallRename;
910
use Rector\Symfony\Rector\ClassMethod\ConsoleExecuteReturnIntRector;
1011
use Rector\Symfony\Rector\MethodCall\AuthorizationCheckerIsGrantedExtractorRector;
@@ -18,6 +19,10 @@
1819
# https://github.com/symfony/symfony/blob/4.4/UPGRADE-4.4.md#security
1920
$rectorConfig->rule(AuthorizationCheckerIsGrantedExtractorRector::class);
2021

22+
$rectorConfig->ruleWithConfiguration(RenameClassRector::class, [
23+
'Symfony\Component\Templating\EngineInterface' => 'Twig\Environment',
24+
]);
25+
2126
$rectorConfig->ruleWithConfiguration(RenameFunctionRector::class, [
2227
'Symfony\Component\DependencyInjection\Loader\Configurator\tagged' => 'Symfony\Component\DependencyInjection\Loader\Configurator\tagged_iterator',
2328
]);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.