\phpDocumentor\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.

Summary

Methods
Properties
Constants
getInstance()
setInstance()
No public properties found
No constants found
No protected methods found
$instances
N/A
No private methods found
No private properties found
N/A

Properties

$instances

$instances : \phpDocumentor\Event\Dispatcher[]

Type

Dispatcher[] — Keep track of an array of instances.

Methods

getInstance()

getInstance(string  $name = 'default') : self

Returns a named instance of the Event Dispatcher.

Parameters

string $name

Returns

self —

setInstance()

setInstance(string  $name, self  $instance) : void

Sets a names instance of the Event Dispatcher.

Parameters

string $name
self $instance