diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc index 734d67ee74..5cc1236c1b 100644 --- a/core/includes/install.core.inc +++ b/core/includes/install.core.inc @@ -135,6 +135,8 @@ function install_drupal($class_loader, $settings = []) { $state = $install_state; if (!empty($install_state['installation_finished'])) { unset($GLOBALS['install_state']); + // If installation is finished ensure any further container rebuilds do not + // use the installer's service provider. unset($GLOBALS['conf']['container_service_providers']['InstallerServiceProvider']); }