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
Afficher le fichier Open project: prooph/service-bus Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
processCommand ( $command )

Method Details

dispatch() public méthode

public dispatch ( mixed $command ) : void
$command mixed
Résultat void

processCommand() protected méthode

protected processCommand ( $command )

setActionEventEmitter() public méthode

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