Avolutions\Event\EventDispatcher
The EventDispatcher is responsible to call all relevant listener for the dispatched Event.
Methods
Method | Visibility | Description |
---|---|---|
__construct() | public | Creates a new EventDispatcher instance. |
dispatch() | public | Find and calls all relevant listener from the ListenerCollection for the passed Event. |
Method Details
__construct()
Creates a new EventDispatcher instance.
public
__construct(Application $Application, ListenerCollection $ListenerCollection) : mixed
Parameters
Application
$Application
ListenerCollection
$ListenerCollection