DependencySerializationTraitPass.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/DependencyInjection/Compiler/DependencySerializationTraitPass.php
  2. 8.9.x core/lib/Drupal/Core/DependencyInjection/Compiler/DependencySerializationTraitPass.php
  3. 10 core/lib/Drupal/Core/DependencyInjection/Compiler/DependencySerializationTraitPass.php

Namespace

Drupal\Core\DependencyInjection\Compiler

File

core/lib/Drupal/Core/DependencyInjection/Compiler/DependencySerializationTraitPass.php

View source
<?php

namespace Drupal\Core\DependencyInjection\Compiler;

use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;

/**
 * Sets the _serviceId property on all services.
 *
 * @deprecated in drupal:9.5.0 and is removed from drupal:11.0.0. The _serviceId
 *   property is no longer part of the container. Use
 *   \Drupal\Core\DrupalKernelInterface::getServiceIdMapping() instead.
 *
 * @see https://www.drupal.org/node/3292540
 * @see \Drupal\Core\DependencyInjection\DependencySerializationTrait
 */
class DependencySerializationTraitPass implements CompilerPassInterface {
    
    /**
     * {@inheritdoc}
     */
    public function process(ContainerBuilder $container) {
    }

}

Classes

Title Deprecated Summary
DependencySerializationTraitPass

in drupal:9.5.0 and is removed from drupal:11.0.0. The _serviceId property is no longer part of the container. Use \Drupal\Core\DrupalKernelInterface::getServiceIdMapping() instead.

Sets the _serviceId property on all services.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.