mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 19:53:14 +01:00
28 lines
999 B
PHP
28 lines
999 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Rector\Generic\Rector\ClassMethod\ArgumentRemoverRector;
|
|
use Rector\Generic\ValueObject\ArgumentRemover;
|
|
use Rector\Symfony3\Rector\ClassMethod\MergeMethodAnnotationToRouteAnnotationRector;
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
use Symplify\SymfonyPhpConfig\ValueObjectInliner;
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
|
$services = $containerConfigurator->services();
|
|
|
|
$services->set(ArgumentRemoverRector::class)
|
|
->call('configure', [[
|
|
ArgumentRemoverRector::REMOVED_ARGUMENTS => ValueObjectInliner::inline([
|
|
new ArgumentRemover(
|
|
'Symfony\Component\Yaml\Yaml',
|
|
'parse',
|
|
2,
|
|
['Symfony\Component\Yaml\Yaml::PARSE_KEYS_AS_STRINGS']
|
|
),
|
|
]),
|
|
]]);
|
|
|
|
$services->set(MergeMethodAnnotationToRouteAnnotationRector::class);
|
|
};
|