Mercurial > hg > isophonics-drupal-site
view core/lib/Drupal/Core/Installer/InstallerKernel.php @ 13:5fb285c0d0e3
Update Drupal core to 8.4.7 via Composer. Security update; I *think* we've
been lucky to get away with this so far, as we don't support self-registration
which seems to be used by the so-called "drupalgeddon 2" attack that 8.4.5
was vulnerable to.
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:33:26 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
<?php namespace Drupal\Core\Installer; use Drupal\Core\DrupalKernel; /** * Extend DrupalKernel to handle force some kernel behaviors. */ class InstallerKernel extends DrupalKernel { /** * {@inheritdoc} */ protected function initializeContainer() { // Always force a container rebuild. $this->containerNeedsRebuild = TRUE; $container = parent::initializeContainer(); return $container; } /** * Reset the bootstrap config storage. * * Use this from a database driver runTasks() if the method overrides the * bootstrap config storage. Normally the bootstrap config storage is not * re-instantiated during a single install request. Most drivers will not * need this method. * * @see \Drupal\Core\Database\Install\Tasks::runTasks() */ public function resetConfigStorage() { $this->configStorage = NULL; } /** * Returns the active configuration storage used during early install. * * This override changes the visibility so that the installer can access * config storage before the container is properly built. * * @return \Drupal\Core\Config\StorageInterface * The config storage. */ public function getConfigStorage() { return parent::getConfigStorage(); } /** * {@inheritdoc} */ public function getInstallProfile() { global $install_state; if ($install_state && empty($install_state['installation_finished'])) { // If the profile has been selected return it. if (isset($install_state['parameters']['profile'])) { $profile = $install_state['parameters']['profile']; } else { $profile = NULL; } } else { $profile = parent::getInstallProfile(); } return $profile; } }