Dispatcher
in package
extends EventDispatcher
Event Dispatching class.
This class provides a bridge to the Symfony2 EventDispatcher. At current this is provided by inheritance but future iterations should solve this by making it an adapter pattern.
The class is implemented as (mockable) Singleton as this was the best solution to make the functionality available in every class of the project.
Properties
$instances Line 31
protected$instances : \phpDocumentor\Event\Dispatcher[]
Methods
getInstance() Line 36
Returns a named instance of the Event Dispatcher.
publicstaticgetInstance([string $name = 'default' ]) : self
Parameters
Returns
self —
setInstance() Line 48
Sets a names instance of the Event Dispatcher.
publicstaticsetInstance(string $name, self $instance) : void