class DependencySerializationTraitPass

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

Sets the _serviceId property on all services.

Hierarchy

  • class \Drupal\Core\DependencyInjection\Compiler\DependencySerializationTraitPass implements \Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface

Expanded class hierarchy of DependencySerializationTraitPass

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 also

https://www.drupal.org/node/3292540

\Drupal\Core\DependencyInjection\DependencySerializationTrait

File

core/lib/Drupal/Core/DependencyInjection/Compiler/DependencySerializationTraitPass.php, line 18

Namespace

Drupal\Core\DependencyInjection\Compiler
View source
class DependencySerializationTraitPass implements CompilerPassInterface {
    
    /**
     * {@inheritdoc}
     */
    public function process(ContainerBuilder $container) {
    }

}

Members

Title Sort descending Modifiers Object type Summary
DependencySerializationTraitPass::process public function

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