Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AutowirePass.php

function AutowirePass::process

Overrides AbstractRecursivePass::process

File

vendor/symfony/dependency-injection/Compiler/AutowirePass.php, line 68

Class

AutowirePass
Inspects existing service definitions and wires the autowired ones using the type hints of their classes.

Namespace

Symfony\Component\DependencyInjection\Compiler

Code

public function process(ContainerBuilder $container) : void {
    $this->defaultArgument->bag = $container->getParameterBag();
    try {
        $this->typesClone = clone $this;
        parent::process($container);
    } finally {
        $this->decoratedClass = null;
        $this->decoratedId = null;
        $this->defaultArgument->bag = null;
        $this->defaultArgument->names = null;
        $this->restorePreviousValue = null;
        $this->typesClone = null;
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal