PHP Class Prooph\ServiceBus\MessageBus

Base class for a message bus implementation
Author: Alexander Miertsch ([email protected])
Afficher le fichier Open project: prooph/service-bus Class Usage Examples

Protected Properties

Свойство Type Description
$events Prooph\Common\Event\ActionEventEmitter

Méthodes publiques

Méthode Description
deactivate ( Prooph\Common\Event\ActionEventListenerAggregate $plugin )
dispatch ( mixed $message ) : mixed | void
getActionEventEmitter ( ) : Prooph\Common\Event\ActionEventEmitter Retrieve the action event dispatcher
setActionEventEmitter ( Prooph\Common\Event\ActionEventEmitter $actionEventDispatcher ) : void Inject an ActionEventDispatcher instance
utilize ( Prooph\Common\Event\ActionEventListenerAggregate $plugin )

Méthodes protégées

Méthode Description
getMessageName ( mixed $message ) : string
handleException ( Prooph\Common\Event\ActionEvent $actionEvent, Exception $ex )
initialize ( mixed $message, Prooph\Common\Event\ActionEvent $actionEvent )
trigger ( Prooph\Common\Event\ActionEvent $actionEvent )
triggerError ( Prooph\Common\Event\ActionEvent $actionEvent )
triggerFinalize ( Prooph\Common\Event\ActionEvent $actionEvent )

Method Details

deactivate() public méthode

public deactivate ( Prooph\Common\Event\ActionEventListenerAggregate $plugin )
$plugin Prooph\Common\Event\ActionEventListenerAggregate

dispatch() abstract public méthode

abstract public dispatch ( mixed $message ) : mixed | void
$message mixed
Résultat mixed | void depends on the bus type

getActionEventEmitter() public méthode

Lazy-loads a dispatcher if none is registered.
public getActionEventEmitter ( ) : Prooph\Common\Event\ActionEventEmitter
Résultat Prooph\Common\Event\ActionEventEmitter

getMessageName() protected méthode

protected getMessageName ( mixed $message ) : string
$message mixed
Résultat string

handleException() protected méthode

protected handleException ( Prooph\Common\Event\ActionEvent $actionEvent, Exception $ex )
$actionEvent Prooph\Common\Event\ActionEvent
$ex Exception

initialize() protected méthode

protected initialize ( mixed $message, Prooph\Common\Event\ActionEvent $actionEvent )
$message mixed
$actionEvent Prooph\Common\Event\ActionEvent

setActionEventEmitter() public méthode

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

trigger() protected méthode

protected trigger ( Prooph\Common\Event\ActionEvent $actionEvent )
$actionEvent Prooph\Common\Event\ActionEvent

triggerError() protected méthode

protected triggerError ( Prooph\Common\Event\ActionEvent $actionEvent )
$actionEvent Prooph\Common\Event\ActionEvent

triggerFinalize() protected méthode

protected triggerFinalize ( Prooph\Common\Event\ActionEvent $actionEvent )
$actionEvent Prooph\Common\Event\ActionEvent

utilize() public méthode

public utilize ( Prooph\Common\Event\ActionEventListenerAggregate $plugin )
$plugin Prooph\Common\Event\ActionEventListenerAggregate

Property Details

$events protected_oe property

protected ActionEventEmitter,Prooph\Common\Event $events
Résultat Prooph\Common\Event\ActionEventEmitter