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

Protected Properties

Свойство Type Description
$eventMap
$tmpEventName string

Méthodes publiques

Méthode 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 méthode

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

andTo() public méthode

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

attach() public méthode

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

onRouteEvent() public méthode

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 méthode

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

route() public méthode

public route ( string $eventName )
$eventName string

to() public méthode

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
Résultat string