PHP Class Prooph\ServiceBus\CommandBus

A command bus is capable of dispatching a message to a command handler. Only one handler per message is allowed!
Author: Alexander Miertsch ([email protected])
Inheritance: extends MessageBus
Show file Open project: prooph/service-bus Class Usage Examples

Public Methods

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

Protected Methods

Method Description
processCommand ( $command )

Method Details

dispatch() public method

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

processCommand() protected method

protected processCommand ( $command )

setActionEventEmitter() public method

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