You are here

protected function UpdateKernel::initializeContainer in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Update/UpdateKernel.php \Drupal\Core\Update\UpdateKernel::initializeContainer()

Initializes the service container.

Return value

\Symfony\Component\DependencyInjection\ContainerInterface

Overrides DrupalKernel::initializeContainer

File

core/lib/Drupal/Core/Update/UpdateKernel.php, line 38

Class

UpdateKernel
Defines a kernel which is used primarily to run the update of Drupal.

Namespace

Drupal\Core\Update

Code

protected function initializeContainer() {

  // Always force a container rebuild, in order to be able to override some
  // services, see \Drupal\Core\Update\UpdateServiceProvider.
  $this->containerNeedsRebuild = TRUE;
  $container = parent::initializeContainer();
  return $container;
}