PHP Class Prooph\ServiceBus\EventBus

An event bus is capable of dispatching a message to multiple listeners.
Author: Alexander Miertsch ([email protected])
Inheritance: extends MessageBus
Mostra file Open project: prooph/service-bus Class Usage Examples

Public Methods

Method Description
dispatch ( mixed $event ) : void
setActionEventEmitter ( Prooph\Common\Event\ActionEventEmitter $actionEventDispatcher ) : void Inject an ActionEventDispatcher instance

Method Details

dispatch() public method

public dispatch ( mixed $event ) : void
$event mixed
return void

setActionEventEmitter() public method

Inject an ActionEventDispatcher instance
public setActionEventEmitter ( Prooph\Common\Event\ActionEventEmitter $actionEventDispatcher ) : void
$actionEventDispatcher Prooph\Common\Event\ActionEventEmitter
return void