Skip to content

Commit 927b1b2

Browse files
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 #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
2 parents 49f852c + 5e2e79d commit 927b1b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ private function registerRouterConfiguration(array $config, ContainerBuilder $co
778778
$loader->load('routing.xml');
779779

780780
if ($config['utf8']) {
781-
$container->getDefinition('routing.loader')->replaceArgument(2, ['utf8' => true]);
781+
$container->getDefinition('routing.loader')->replaceArgument(1, ['utf8' => true]);
782782
}
783783

784784
$container->setParameter('router.resource', $config['resource']);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy