AutowireLocator
extends Autowire
in package
Autowires a service locator based on a tag name or an explicit list of key => service-type pairs.
Attributes
- #[Attribute]
- \Attribute::TARGET_PARAMETER
Table of Contents
Properties
- $lazy : bool|array<string|int, mixed>
- $value : string|array<string|int, mixed>|Expression|Reference|ArgumentInterface|null
Methods
- __construct() : mixed
- Use only ONE of the following.
Properties
$lazy read-only
public
bool|array<string|int, mixed>
$lazy
$value read-only
public
string|array<string|int, mixed>|Expression|Reference|ArgumentInterface|null
$value
Methods
__construct()
Use only ONE of the following.
public
__construct(string|array<string|int, string|Autowire|SubscribedService> $services[, string|null $indexAttribute = null ][, string|null $defaultIndexMethod = null ][, string|null $defaultPriorityMethod = null ][, string|array<string|int, string> $exclude = [] ][, bool $excludeSelf = true ]) : mixed
Parameters
- $services : string|array<string|int, string|Autowire|SubscribedService>
-
An explicit list of services or a tag name
- $indexAttribute : string|null = null
- $defaultIndexMethod : string|null = null
- $defaultPriorityMethod : string|null = null
- $exclude : string|array<string|int, string> = []
-
A service or a list of services to exclude
- $excludeSelf : bool = true