PHP 클래스 Prooph\ServiceBus\Plugin\Router\SingleHandlerRouter

저자: Alexander Miertsch ([email protected])
상속: implements Prooph\ServiceBus\Plugin\Router\MessageBusRouterPlugin, implements Prooph\Common\Event\ActionEventListenerAggregate, use trait Prooph\Common\Event\DetachAggregateHandlers
파일 보기 프로젝트 열기: prooph/service-bus

보호된 프로퍼티들

프로퍼티 타입 설명
$messageMap
$tmpMessageName string

공개 메소드들

메소드 설명
__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 )

메소드 상세

__construct() 공개 메소드

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

attach() 공개 메소드

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

onRouteMessage() 공개 메소드

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

route() 공개 메소드

public route ( string $messageName )
$messageName string

to() 공개 메소드

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

프로퍼티 상세

$messageMap 보호되어 있는 프로퍼티

protected $messageMap

$tmpMessageName 보호되어 있는 프로퍼티

protected string $tmpMessageName
리턴 string