‪TYPO3CMS  11.5
TYPO3\CMS\Core\EventDispatcher\ListenerProvider Class Reference
Inheritance diagram for TYPO3\CMS\Core\EventDispatcher\ListenerProvider:

Public Member Functions

 __construct (ContainerInterface $container)
 
 addListener (string $event, string $service, ?string $method=null)
 
 getAllListenerDefinitions ()
 
 getListenersForEvent (object $event)
 

Protected Member Functions

callable getCallable (string $service, ?string $method=null)
 

Protected Attributes

ContainerInterface $container
 
array $listeners = array( )
 

Detailed Description

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

Definition at line 29 of file ListenerProvider.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\EventDispatcher\ListenerProvider::__construct ( ContainerInterface  $container)

Member Function Documentation

◆ addListener()

TYPO3\CMS\Core\EventDispatcher\ListenerProvider::addListener ( string  $event,
string  $service,
?string  $method = null 
)

Not part of the public API, used in the generated service factor for this class,

Parameters
string$event
string$service
string | null$method

Definition at line 52 of file ListenerProvider.php.

Referenced by TYPO3\CMS\Backend\ServiceProvider\addEventListeners(), and TYPO3\CMS\Dashboard\ServiceProvider\addEventListeners().

◆ getAllListenerDefinitions()

TYPO3\CMS\Core\EventDispatcher\ListenerProvider::getAllListenerDefinitions ( )

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

Definition at line 65 of file ListenerProvider.php.

References TYPO3\CMS\Core\EventDispatcher\ListenerProvider\$listeners.

◆ getCallable()

callable TYPO3\CMS\Core\EventDispatcher\ListenerProvider::getCallable ( string  $service,
?string  $method = null 
)
protected
Parameters
string$service
string | null$method
Returns
‪callable
Exceptions

Definition at line 99 of file ListenerProvider.php.

Referenced by TYPO3\CMS\Core\EventDispatcher\ListenerProvider\getListenersForEvent().

◆ getListenersForEvent()

TYPO3\CMS\Core\EventDispatcher\ListenerProvider::getListenersForEvent ( object  $event)

Member Data Documentation

◆ $container

ContainerInterface TYPO3\CMS\Core\EventDispatcher\ListenerProvider::$container
protected

◆ $listeners

array TYPO3\CMS\Core\EventDispatcher\ListenerProvider::$listeners = array( )
protected