function AutowirePass::__construct
File
-
vendor/
symfony/ dependency-injection/ Compiler/ AutowirePass.php, line 50
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 __construct(bool $throwOnAutowiringException = true) {
$this->defaultArgument = new class {
public $value;
public $names;
public $bag;
public function withValue(\ReflectionParameter $parameter) : self {
$clone = clone $this;
$clone->value = $this->bag
->escapeValue($parameter->getDefaultValue());
return $clone;
}
};
}