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
Datei anzeigen Open project: prooph/service-bus

Protected Properties

Property Type Description
$messageMap
$tmpMessageName string

Public Methods

Method 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 method

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

attach() public method

public attach ( Prooph\Common\Event\ActionEventEmitter $events ) : void
$events Prooph\Common\Event\ActionEventEmitter
return void

onRouteMessage() public method

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

route() public method

public route ( string $messageName )
$messageName string

to() public method

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
return string