minor #31900 [FrameworkBundle] Fixed replace argument of routing.loader service (yceruto)

This PR was merged into the 5.0-dev branch.

Discussion
----------

[FrameworkBundle] Fixed replace argument of `routing.loader` service

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Fix https://github.com/symfony/symfony/pull/31702
> (1/1) OutOfBoundsException
The index "2" is not in the range [0, 1].

bd8d8a2cfd/src/Symfony/Bundle/FrameworkBundle/Routing/DelegatingLoader.php (L33)

Commits
-------

5e2e79dbb9 Fixed replace argument of `routing.loader` service
This commit is contained in:
Nicolas Grekas 2019-06-06 19:41:38 +02:00
commit 927b1b23f1

View File

@ -778,7 +778,7 @@ class FrameworkExtension extends Extension
$loader->load('routing.xml');
if ($config['utf8']) {
$container->getDefinition('routing.loader')->replaceArgument(2, ['utf8' => true]);
$container->getDefinition('routing.loader')->replaceArgument(1, ['utf8' => true]);
}
$container->setParameter('router.resource', $config['resource']);