diff --git a/core/core.services.yml b/core/core.services.yml index 12498b7a9623504bd1297325beb29f342629a4b1..250be9eab34a87b62d897c96f8ecaef9bfb77dc8 100644 --- a/core/core.services.yml +++ b/core/core.services.yml @@ -217,8 +217,6 @@ services: container.namespaces: class: ArrayObject arguments: [ '%container.namespaces%' ] - tags: - - { name: persist } container.trait: abstract: true calls: diff --git a/core/lib/Drupal/Core/DrupalKernel.php b/core/lib/Drupal/Core/DrupalKernel.php index d3b7b1bbe1f46227624afdd630c34c345c629308..4349d2755cf58a5a21eb9bd26448378b7bca4f53 100644 --- a/core/lib/Drupal/Core/DrupalKernel.php +++ b/core/lib/Drupal/Core/DrupalKernel.php @@ -426,13 +426,6 @@ protected function initializeContainer() { $this->container = $this->buildContainer(); $this->persistServices($persist); - // The namespaces are marked as persistent, so objects like the annotated - // class discovery still has the right object. We may have updated the - // list of modules, so set it. - if ($this->container->initialized('container.namespaces')) { - $this->container->get('container.namespaces')->exchangeArray($this->container->getParameter('container.namespaces')); - } - if ($this->allowDumping) { $this->containerNeedsDumping = TRUE; }