\Pivot\Events\MediatorEventDispatcherInterface

Allows components to communicate with each other by dispatching events and listening to them.

Summary

Methods
Constants
addSubscriber()
addListener()
dispatch()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

addListener()

addListener(object  $listener, array  $events) : \Pivot\Events\Mediator\EventDispatcherInterface

Parameters

object $listener
array $events

Throws

\InvalidArgumentException

Returns

\Pivot\Events\Mediator\EventDispatcherInterface

dispatch()

dispatch(string  $event, array  $data = array()) 

Parameters

string $event
array $data

Throws

\InvalidArgumentException
\RuntimeException