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