PHP Class Prooph\ServiceBus\Plugin\Router\SingleHandlerRouter

Author: Alexander Miertsch ([email protected])
Inheritance: implements Prooph\ServiceBus\Plugin\Router\MessageBusRouterPlugin, implements Prooph\Common\Event\ActionEventListenerAggregate, use trait Prooph\Common\Event\DetachAggregateHandlers
Afficher le fichier Open project: prooph/service-bus

Protected Properties

Свойство Type Description
$messageMap
$tmpMessageName string

Méthodes publiques

Méthode Description
__construct ( array $messageMap = null )
attach ( Prooph\Common\Event\ActionEventEmitter $events ) : void
onRouteMessage ( Prooph\Common\Event\ActionEvent $actionEvent )
route ( string $messageName )
to ( string | object | callable $messageHandler )

Method Details

__construct() public méthode

public __construct ( array $messageMap = null )
$messageMap array

attach() public méthode

public attach ( Prooph\Common\Event\ActionEventEmitter $events ) : void
$events Prooph\Common\Event\ActionEventEmitter
Résultat void

onRouteMessage() public méthode

public onRouteMessage ( Prooph\Common\Event\ActionEvent $actionEvent )
$actionEvent Prooph\Common\Event\ActionEvent

route() public méthode

public route ( string $messageName )
$messageName string

to() public méthode

public to ( string | object | callable $messageHandler )
$messageHandler string | object | callable

Property Details

$messageMap protected_oe property

protected $messageMap

$tmpMessageName protected_oe property

protected string $tmpMessageName
Résultat string