ListenerProviderPass implements CompilerPassInterface

FinalYes
Internal

Table of Contents

Interfaces

CompilerPassInterface

Methods

__construct()  : mixed
process()  : void
collectListeners()  : array<string|int, mixed>
Collects all listeners from the container.
getParameterType()  : string|null
Derives the class type of the first argument of a given method.
getReflectionMethod()  : ReflectionFunctionAbstract

Methods

__construct()

public __construct(string $tagName) : mixed
Parameters
$tagName : string

process()

public process(ContainerBuilder $container) : void
Parameters
$container : ContainerBuilder

collectListeners()

Collects all listeners from the container.

protected collectListeners(ContainerBuilder $container) : array<string|int, mixed>
Parameters
$container : ContainerBuilder
Return values
array<string|int, mixed>

getParameterType()

Derives the class type of the first argument of a given method.

protected getParameterType(string $serviceName, Definition $definition[, string $method = '__invoke' ]) : string|null
Parameters
$serviceName : string
$definition : Definition
$method : string = '__invoke'
Return values
string|null

getReflectionMethod()

protected getReflectionMethod(string $serviceName, Definition $definition, string $method) : ReflectionFunctionAbstract
Parameters
$serviceName : string
$definition : Definition
$method : string
Tags
throws
RuntimeException

This method borrowed very closely from Symfony's AbstractRecurisvePass.

Return values
ReflectionFunctionAbstract

        
On this page

Search results