PHP Class Prooph\ServiceBus\Plugin\Router\EventRouter

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

Protected Properties

Property Type Description
$eventMap
$tmpEventName string

Public Methods

Method Description
__construct ( array $eventMap = null )
andTo ( string | object | callable $eventListener ) Alias for method to
attach ( Prooph\Common\Event\ActionEventEmitter $events ) : void
onRouteEvent ( Prooph\Common\Event\ActionEvent $actionEvent )
onRouteMessage ( Prooph\Common\Event\ActionEvent $actionEvent )
route ( string $eventName )
to ( string | object | callable $eventListener )

Method Details

__construct() public method

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

andTo() public method

Alias for method to
public andTo ( string | object | callable $eventListener )
$eventListener string | object | callable

attach() public method

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

onRouteEvent() public method

Deprecation: Will be removed with v6.0, use method onRouteMessage instead
public onRouteEvent ( Prooph\Common\Event\ActionEvent $actionEvent )
$actionEvent Prooph\Common\Event\ActionEvent

onRouteMessage() public method

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

route() public method

public route ( string $eventName )
$eventName string

to() public method

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

Property Details

$eventMap protected_oe property

protected $eventMap

$tmpEventName protected_oe property

protected string $tmpEventName
return string