PHP Класс Prooph\ServiceBus\Plugin\Router\EventRouter

Автор: Alexander Miertsch ([email protected])
Наследование: implements Prooph\ServiceBus\Plugin\Router\MessageBusRouterPlugin, implements Prooph\Common\Event\ActionEventListenerAggregate, use trait Prooph\Common\Event\DetachAggregateHandlers
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$eventMap
$tmpEventName string

Открытые методы

Метод Описание
__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 )

Описание методов

__construct() публичный Метод

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

andTo() публичный Метод

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

attach() публичный Метод

public attach ( Prooph\Common\Event\ActionEventEmitter $events ) : void
$events Prooph\Common\Event\ActionEventEmitter
Результат void

onRouteEvent() публичный Метод

Устаревший: Will be removed with v6.0, use method onRouteMessage instead
public onRouteEvent ( Prooph\Common\Event\ActionEvent $actionEvent )
$actionEvent Prooph\Common\Event\ActionEvent

onRouteMessage() публичный Метод

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

route() публичный Метод

public route ( string $eventName )
$eventName string

to() публичный Метод

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

Описание свойств

$eventMap защищенное свойство

protected $eventMap

$tmpEventName защищенное свойство

protected string $tmpEventName
Результат string