Documentation

TaggedLocator extends AutowireLocator
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

$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 = []

$lazy read-only

public bool|array<string|int, mixed> $lazy

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

        
On this page

Search results