Fix URL generator instantiation

This commit is contained in:
Antonio Pauletich 2019-10-30 20:24:37 +01:00
parent e8b31ff608
commit 16c9bafee4
No known key found for this signature in database
GPG Key ID: F5610CFFE2CDDDC0

View File

@ -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();