From 16c9bafee4ff9460b9bec2e24f93caae03aae71e Mon Sep 17 00:00:00 2001 From: Antonio Pauletich Date: Wed, 30 Oct 2019 20:24:37 +0100 Subject: [PATCH] Fix URL generator instantiation --- src/Symfony/Component/Routing/Router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Routing/Router.php b/src/Symfony/Component/Routing/Router.php index 5f8d9ffb15..c4fb3e2151 100644 --- a/src/Symfony/Component/Routing/Router.php +++ b/src/Symfony/Component/Routing/Router.php @@ -369,7 +369,7 @@ class Router implements RouterInterface, RequestMatcherInterface ); if ($compiled) { - $this->generator = new $this->options['generator_class'](require $cache->getPath(), $this->context, $this->logger); + $this->generator = new $this->options['generator_class'](require $cache->getPath(), $this->context, $this->logger, $this->defaultLocale); } else { if (!class_exists($this->options['generator_cache_class'], false)) { require_once $cache->getPath();