mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-11 19:15:10 +01:00
25 lines
880 B
PHP
25 lines
880 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\Renaming\Rector\Name\RenameClassRector;
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
|
$services = $containerConfigurator->services();
|
|
|
|
$services->set(RenameClassRector::class)
|
|
->call('configure', [[
|
|
RenameClassRector::OLD_TO_NEW_CLASSES => [
|
|
#filters
|
|
# see https://twig.symfony.com/doc/1.x/deprecated.html
|
|
'Twig_SimpleFilter' => 'Twig_Filter',
|
|
#functions
|
|
# see https://twig.symfony.com/doc/1.x/deprecated.html
|
|
'Twig_SimpleFunction' => 'Twig_Function',
|
|
# see https://github.com/bolt/bolt/pull/6596
|
|
'Twig_SimpleTest' => 'Twig_Test',
|
|
],
|
|
]]);
|
|
};
|