ListenerProvider implements ListenerProviderInterface
Provides Listeners configured with the symfony service tag 'event.listener'.
Table of Contents
Interfaces
- ListenerProviderInterface
Properties
- $container : ContainerInterface
- $listeners : array<string|int, mixed>
Methods
- __construct() : mixed
- addListener() : void
- Not part of the public API, used in the generated service factor for this class,
- getAllListenerDefinitions() : array<string|int, mixed>
- Not part of the public API, only used for debugging purposes
- getListenersForEvent() : iterable<string|int, mixed>
- getCallable() : callable
Properties
$container
protected
ContainerInterface
$container
$listeners
protected
array<string|int, mixed>
$listeners
= []
Methods
__construct()
public
__construct(ContainerInterface $container) : mixed
Parameters
- $container : ContainerInterface
addListener()
Not part of the public API, used in the generated service factor for this class,
public
addListener(string $event, string $service[, string|null $method = null ]) : void
Parameters
- $event : string
- $service : string
- $method : string|null = null
getAllListenerDefinitions()
Not part of the public API, only used for debugging purposes
public
getAllListenerDefinitions() : array<string|int, mixed>
Return values
array<string|int, mixed>getListenersForEvent()
public
getListenersForEvent(object $event) : iterable<string|int, mixed>
Parameters
- $event : object
Tags
Return values
iterable<string|int, mixed>getCallable()
protected
getCallable(string $service[, string|null $method = null ]) : callable
Parameters
- $service : string
- $method : string|null = null