ResolveTaggedIteratorArgumentPass
extends AbstractRecursivePass
in package
Uses
PriorityTaggedServiceTrait
Resolves all TaggedIteratorArgument arguments.
Tags
Table of Contents
- $container : ContainerBuilder
- $currentId : mixed
- $expressionLanguage : mixed
- $inExpression : mixed
- $processExpressions : mixed
- process() : mixed
- You can modify the container here before it is dumped to PHP code.
- enableExpressionProcessing() : mixed
- getConstructor() : ReflectionFunctionAbstract|null
- getReflectionMethod() : ReflectionFunctionAbstract
- inExpression() : bool
- processValue() : mixed
- Processes a value found in a definition tree.
- findAndSortTaggedServices() : array<string|int, Reference>
- Finds all services with the given tag name and order them by their priority.
- getExpressionLanguage() : ExpressionLanguage
Properties
$container
protected
ContainerBuilder
$container
$currentId
protected
mixed
$currentId
$expressionLanguage
private
mixed
$expressionLanguage
$inExpression
private
mixed
$inExpression
= false
$processExpressions
private
mixed
$processExpressions
= false
Methods
process()
You can modify the container here before it is dumped to PHP code.
public
process(ContainerBuilder $container) : mixed
Parameters
- $container : ContainerBuilder
Return values
mixed —enableExpressionProcessing()
protected
enableExpressionProcessing() : mixed
Return values
mixed —getConstructor()
protected
getConstructor(Definition $definition, bool $required) : ReflectionFunctionAbstract|null
Parameters
- $definition : Definition
- $required : bool
Tags
Return values
ReflectionFunctionAbstract|null —getReflectionMethod()
protected
getReflectionMethod(Definition $definition, string $method) : ReflectionFunctionAbstract
Parameters
- $definition : Definition
- $method : string
Tags
Return values
ReflectionFunctionAbstract —inExpression()
protected
inExpression([bool $reset = true ]) : bool
Parameters
- $reset : bool = true
Return values
bool —processValue()
Processes a value found in a definition tree.
protected
processValue(mixed $value[, bool $isRoot = false ]) : mixed
Parameters
- $value : mixed
- $isRoot : bool = false
Return values
mixed —findAndSortTaggedServices()
Finds all services with the given tag name and order them by their priority.
private
findAndSortTaggedServices(string|TaggedIteratorArgument $tagName, ContainerBuilder $container) : array<string|int, Reference>
The order of additions must be respected for services having the same priority, and knowing that the \SplPriorityQueue class does not respect the FIFO method, we should not use that class.
Parameters
- $tagName : string|TaggedIteratorArgument
- $container : ContainerBuilder
Tags
Return values
array<string|int, Reference> —getExpressionLanguage()
private
getExpressionLanguage() : ExpressionLanguage