Issue #2382239 by chx: InstallerKernel is undocumented and hardwires bootstrap config storage
parent
7c3071b7d2
commit
6389cda9af
|
@ -7,10 +7,7 @@
|
||||||
|
|
||||||
namespace Drupal\Core\Installer;
|
namespace Drupal\Core\Installer;
|
||||||
|
|
||||||
use Drupal\Core\DependencyInjection\ContainerBuilder;
|
|
||||||
use Drupal\Core\DrupalKernel;
|
use Drupal\Core\DrupalKernel;
|
||||||
use Drupal\Core\Site\Settings;
|
|
||||||
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Extend DrupalKernel to handle force some kernel behaviors.
|
* Extend DrupalKernel to handle force some kernel behaviors.
|
||||||
|
@ -19,10 +16,28 @@ class InstallerKernel extends DrupalKernel {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
*
|
||||||
|
* @param bool $rebuild
|
||||||
|
* Force a container rebuild. Unlike the parent method, this defaults to
|
||||||
|
* TRUE.
|
||||||
*/
|
*/
|
||||||
protected function initializeContainer($rebuild = TRUE) {
|
protected function initializeContainer($rebuild = TRUE) {
|
||||||
$container = parent::initializeContainer($rebuild);
|
$container = parent::initializeContainer($rebuild);
|
||||||
return $container;
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue