diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc index 80873b1..96a29d9 100644 --- a/core/includes/install.core.inc +++ b/core/includes/install.core.inc @@ -19,9 +19,11 @@ use Drupal\Core\Extension\ExtensionDiscovery; use Drupal\Core\DependencyInjection\ContainerBuilder; use Drupal\language\Entity\ConfigurableLanguage; +use Symfony\Cmf\Component\Routing\RouteObjectInterface; use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\Routing\Route; use GuzzleHttp\Exception\RequestException; @@ -416,6 +418,8 @@ function install_begin_request(&$install_state) { // Load all modules and perform request related initialization. $kernel->preHandle($request); + $request->attributes->set(RouteObjectInterface::ROUTE_OBJECT, new Route('')); + $request->attributes->set(RouteObjectInterface::ROUTE_NAME, ''); // Prepare for themed output. We need to run this at the beginning of the // page request to avoid a different theme accidentally getting set. (We also