rector/config/set/symfony34.php

23 lines
774 B
PHP
Raw Normal View History

2020-07-18 18:57:24 +02:00
<?php
declare(strict_types=1);
use Rector\Generic\Rector\Argument\ArgumentRemoverRector;
2020-07-18 18:57:24 +02:00
use Rector\Symfony\Rector\ClassMethod\MergeMethodAnnotationToRouteAnnotationRector;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $containerConfigurator): void {
$services = $containerConfigurator->services();
$services->set(ArgumentRemoverRector::class)
->arg('$positionsByMethodNameByClassType', [
'Symfony\Component\Yaml\Yaml' => [
'parse' => [
2 => ['Symfony\Component\Yaml\Yaml::PARSE_KEYS_AS_STRINGS'],
],
],
]);
$services->set(MergeMethodAnnotationToRouteAnnotationRector::class);
};