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()  : mixed

Properties

$listenerProvider

protected ListenerProviderInterface $listenerProvider

Methods

__construct()

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

dispatch()

public dispatch(object $event) : mixed
Parameters
$event : object
Tags
inheritdoc

        
On this page

Search results