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\CompilerCode
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;
}
}