diff --git a/config/v8/typo3-80.php b/config/v8/typo3-80.php index 479a8f635..9a1765e09 100644 --- a/config/v8/typo3-80.php +++ b/config/v8/typo3-80.php @@ -23,6 +23,7 @@ use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; use TYPO3\CMS\Extbase\Utility\ExtensionUtility; +use TYPO3\CMS\Fluid\Core\Rendering\RenderingContext; return static function (ContainerConfigurator $containerConfigurator): void { $containerConfigurator->import(__DIR__ . '/../services.php'); @@ -88,4 +89,15 @@ $services->set(RandomMethodsToRandomClassRector::class); $services->set(RequireMethodsToNativeFunctionsRector::class); $services->set(GetPreferredClientLanguageRector::class); + + $services->set(RenameMethodRector::class) + ->call('configure', [[ + RenameMethodRector::METHOD_CALL_RENAMES => inline_value_objects([ + new MethodCallRename( + RenderingContext::class, + 'getTemplateVariableContainer', + 'getVariableProvider' + ), + ]), + ]]); };