Skip to content

Commit

Permalink
minor #31900 [FrameworkBundle] Fixed replace argument of `routing.loa…
Browse files Browse the repository at this point in the history
…der` 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 #31702
> (1/1) OutOfBoundsException
The index "2" is not in the range [0, 1].

https://github.com/symfony/symfony/blob/bd8d8a2cfd50dffb4aa07908865931fb82a9e7bf/src/Symfony/Bundle/FrameworkBundle/Routing/DelegatingLoader.php#L33

Commits
-------

5e2e79d Fixed replace argument of `routing.loader` service
  • Loading branch information
nicolas-grekas committed Jun 6, 2019
2 parents 49f852c + 5e2e79d commit 927b1b2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -778,7 +778,7 @@ private function registerRouterConfiguration(array $config, ContainerBuilder $co
$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']);
Expand Down

0 comments on commit 927b1b2

Please sign in to comment.