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.

Table of Contents

Interfaces

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

Properties

$listenerProvider  : ListenerProviderInterface

Methods

__construct()  : mixed
dispatch()  : object

Properties

$listenerProvider read-only

protected ListenerProviderInterface $listenerProvider

Methods

__construct()

public __construct(ListenerProviderInterface $listenerProvider) : mixed
Parameters
$listenerProvider : ListenerProviderInterface

dispatch()

public dispatch(object $event) : object
Parameters
$event : object
Return values
object

        
On this page

Search results