diff --git a/core/lib/Drupal/Core/Update/UpdateKernel.php b/core/lib/Drupal/Core/Update/UpdateKernel.php index 32314f9..2c9035f 100644 --- a/core/lib/Drupal/Core/Update/UpdateKernel.php +++ b/core/lib/Drupal/Core/Update/UpdateKernel.php @@ -27,6 +27,16 @@ class UpdateKernel extends DrupalKernel { /** + * Whether the container can be cached. + * + * Don't cache this particular container, so it does not leak into the main + * site at all. + * + * @var bool + */ + protected $allowCaching = FALSE; + + /** * {@inheritdoc} */ public function discoverServiceProviders() { @@ -43,9 +53,6 @@ protected function initializeContainer() { // services, see \Drupal\Core\Update\UpdateServiceProvider. $this->containerNeedsRebuild = TRUE; $container = parent::initializeContainer(); - // Don't save this particular container to cache, so it does not leak into - // the main site at all. - $this->allowCaching = FALSE; return $container; }