ListenerProvider implements ListenerProviderInterface

Provides Listeners configured with the symfony service tag 'event.listener'.

Internal

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 ][, string|null $identifier = null ]) : void
Parameters
$event : string
$service : string
$method : string|null = null
$identifier : string|null = null
Internal

getAllListenerDefinitions()

Not part of the public API, only used for debugging purposes

public getAllListenerDefinitions() : array<string|int, mixed>
Internal
Return values
array<string|int, mixed>

getListenersForEvent()

public getListenersForEvent(object $event) : iterable<string|int, mixed>
Parameters
$event : object
Return values
iterable<string|int, mixed>

getCallable()

protected getCallable(string $service[, string|null $method = null ]) : callable
Parameters
$service : string
$method : string|null = null
Tags
throws
InvalidArgumentException
Return values
callable

        
On this page

Search results