ControllerArgumentValueResolverPass
in package
implements
CompilerPassInterface
Uses
PriorityTaggedServiceTrait
Gathers and configures the argument value resolvers.
Tags
Interfaces, Classes and Traits
- CompilerPassInterface
- Interface that must be implemented by compilation passes.
Table of Contents
- $argumentResolverService : mixed
- $argumentValueResolverTag : mixed
- $traceableResolverStopwatch : mixed
- __construct() : mixed
- process() : mixed
- You can modify the container here before it is dumped to PHP code.
- findAndSortTaggedServices() : array<string|int, Reference>
- Finds all services with the given tag name and order them by their priority.
Properties
$argumentResolverService
private
mixed
$argumentResolverService
$argumentValueResolverTag
private
mixed
$argumentValueResolverTag
$traceableResolverStopwatch
private
mixed
$traceableResolverStopwatch
Methods
__construct()
public
__construct([string $argumentResolverService = 'argument_resolver' ][, string $argumentValueResolverTag = 'controller.argument_value_resolver' ][, string $traceableResolverStopwatch = 'debug.stopwatch' ]) : mixed
Parameters
- $argumentResolverService : string = 'argument_resolver'
- $argumentValueResolverTag : string = 'controller.argument_value_resolver'
- $traceableResolverStopwatch : string = 'debug.stopwatch'
Return values
mixed —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 —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