rector/config/set/symfony28.php

40 lines
1.8 KiB
PHP
Raw Normal View History

2020-07-18 18:57:24 +02:00
<?php
declare(strict_types=1);
use Rector\Generic\Rector\Argument\ArgumentDefaultValueReplacerRector;
2020-07-18 18:57:24 +02:00
use Rector\Symfony\Rector\Yaml\ParseFileRector;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $containerConfigurator): void {
$services = $containerConfigurator->services();
$services->set(ParseFileRector::class);
$services->set(ArgumentDefaultValueReplacerRector::class)
->call('configure', [[
2020-07-30 01:39:41 +02:00
ArgumentDefaultValueReplacerRector::REPLACES_BY_METHOD_AND_TYPES => [
'Symfony\Component\Routing\Generator\UrlGeneratorInterface' => [
'generate' => [
2 => [
[
# https://github.com/symfony/symfony/commit/912fc4de8fd6de1e5397be4a94d39091423e5188
'before' => true,
'after' => 'Symfony\Component\Routing\Generator\UrlGeneratorInterface::ABSOLUTE_URL',
], [
'before' => false,
'after' => 'Symfony\Component\Routing\Generator\UrlGeneratorInterface::ABSOLUTE_PATH',
], [
'before' => 'relative',
'after' => 'Symfony\Component\Routing\Generator\UrlGeneratorInterface::RELATIVE_PATH',
], [
'before' => 'network',
'after' => 'Symfony\Component\Routing\Generator\UrlGeneratorInterface::NETWORK_PATH',
],
2020-07-18 18:57:24 +02:00
],
],
],
],
]]);
2020-07-18 18:57:24 +02:00
};