EntityListenerPass
in package
implements
CompilerPassInterface
Uses
PriorityTaggedServiceTrait
Class for Symfony bundles to register entity listeners
Interfaces, Classes, Traits and Enums
- CompilerPassInterface
- Interface that must be implemented by compilation passes.
Table of Contents
- process() : mixed
- You can modify the container here before it is dumped to PHP code.
- attachToListener() : void
- findAndSortTaggedServices() : array<string|int, Reference>
- Finds all services with the given tag name and order them by their priority.
- getConcreteDefinitionClass() : string
- getResolverClass() : string
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 —attachToListener()
private
attachToListener(ContainerBuilder $container, string $name, string $class, array<string|int, mixed> $attributes) : void
Parameters
- $container : ContainerBuilder
- $name : string
- $class : string
- $attributes : array<string|int, mixed>
Return values
void —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> —getConcreteDefinitionClass()
private
getConcreteDefinitionClass(Definition $definition, ContainerBuilder $container, string $id) : string
Parameters
- $definition : Definition
- $container : ContainerBuilder
- $id : string
Return values
string —getResolverClass()
private
getResolverClass(Definition $resolver, ContainerBuilder $container, string $id) : string
Parameters
- $resolver : Definition
- $container : ContainerBuilder
- $id : string