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()  : array<string|int, string>|null
Derives the class type(s) 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(s) of the first argument of a given method.

protected getParameterType(string $serviceName, Definition $definition[, string $method = '__invoke' ]) : array<string|int, string>|null

Supporting union types, this method returns the class type(s) as list.

Parameters
$serviceName : string
$definition : Definition
$method : string = '__invoke'
Return values
array<string|int, string>|null

A list of class types or NULL on failure

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