Inspects existing service definitions and wires the autowired ones using the type hints of their classes.
- author Kévin Dunglas
- author Nicolas Grekas
CloneableInstantiable
Methods |
public __construct(bool $throwOnAutowireException = true) |
public process(Symfony |
Properties |
Methods |
protected processValue(?mixed $value, bool $isRoot = false) : ?mixed |
Properties |
private array $ambiguousServiceTypes |
private array $autowiringAliases |
private string $decoratedClass |
private string $decoratedId |
private int $decoratedMethodArgumentIndex |
private int $decoratedMethodIndex |
private object $defaultArgument |
private Closure $getPreviousValue |
private string $lastFailure |
private array $methodCalls |
private bool $throwOnAutowiringException |
private array $types |
private self $typesClone |
Methods |
private autowireCalls(ReflectionClass $reflectionClass, bool $isRoot, bool $checkAttributes) : array |
private autowireMethod(ReflectionFunctionAbstract $reflectionMethod, array $arguments, bool $checkAttributes, int $methodIndex) : array Autowires the constructor or a method. |
private createTypeAlternatives(Symfony |
private createTypeNotFoundMessage(Symfony |
private createTypeNotFoundMessageCallback(Symfony |
private doProcessValue(?mixed $value, bool $isRoot = false) : ?mixed |
private getAliasesSuggestionForType(Symfony |
private getAutowiredReference(Symfony Returns a reference to the service matching the given type, if any. |
private getCombinedAlias(string $type, ?string $name = NULL) : ?string |
private populateAutowiringAlias(string $id) : void |
private populateAvailableType(Symfony Populates the list of available types for a given definition. |
private populateAvailableTypes(Symfony Populates the list of available types. |
private processAttribute(object $attribute, bool $isOptional = false) : ?mixed |
private set(string $type, string $id) Associates a type and a service id if applicable. |