dev-master
9999999-devAuryn based event dispatching
The Requires
by Sergey Telshevsky
Auryn based event dispatching
Auryn event dispatching, (*1)
A very small library to work with simple events., (*2)
The whole point of this library is to allow Auryn to inject dependencies straight to your event methods., (*3)
composer require vlakarados/eventure
\Eventure\Dispatcher
Any public method in this class will be a registered event for the corresponding dispatcher., (*4)
Two functions are used by the parent dispatcher class that may not be overriden (restricted event names):
dispatch()
,hasEvent()
., (*5)
dispatch($eventName)
method to send the event. Examples are in the example/
directory, the ExampleDispatcher and the test bootstrap file., (*6)
\App\Dispatchers\User::dispatch('logIn', array('userId' => 12345))
or \App\Dispatchers\User::logIn(array('userId' => 12345))
(?) Auryn based event dispatching