Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 16c9baf

Browse files
committed
Fix URL generator instantiation
1 parent e8b31ff commit 16c9baf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Routing/Router.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ function (ConfigCacheInterface $cache) {
369369
);
370370

371371
if ($compiled) {
372-
$this->generator = new $this->options['generator_class'](require $cache->getPath(), $this->context, $this->logger);
372+
$this->generator = new $this->options['generator_class'](require $cache->getPath(), $this->context, $this->logger, $this->defaultLocale);
373373
} else {
374374
if (!class_exists($this->options['generator_cache_class'], false)) {
375375
require_once $cache->getPath();

0 commit comments

Comments
 (0)