EventDispatcher

class \TYPO3\CMS\Core\EventDispatcher\EventDispatcher

Implements
EventDispatcherInterface, SingletonInterface

Base PSR-14 event dispatcher which has only one listener provider, given at runtime Is a singleton instance in order to be published once.

Attributes

#[AsAlias]
\Psr\EventDispatcher\EventDispatcherInterface::class
$public: true

Table of Contents

Interfaces

EventDispatcherInterface
SingletonInterface
"empty" interface for singletons (marker interface pattern)

Properties

$listenerProvider  : ListenerProviderInterface

Methods

__construct()  : mixed
dispatch()  : T

Properties

$listenerProvider read-only

protected ListenerProviderInterface $listenerProvider

Methods

__construct()

public __construct(ListenerProviderInterface $listenerProvider) : mixed

Parameters

$listenerProvider : ListenerProviderInterface

dispatch()

public dispatch(T $event) : T

Parameters

$event : T

Tags

template

Return values

T
On this page