‪TYPO3CMS  ‪main
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, string $identifier=null)
 
 getAllListenerDefinitions ()
 
 getListenersForEvent (object $event)
 

Protected Member Functions

 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,
string  $identifier = null 
)

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

Parameters
string | null$method

Definition at line 50 of file ListenerProvider.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

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

◆ getAllListenerDefinitions()

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

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

Definition at line 63 of file ListenerProvider.php.

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

◆ getCallable()

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

Definition at line 92 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