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

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

보호된 프로퍼티들

프로퍼티 타입 설명
$patternMap
$tmpPattern string

공개 메소드들

메소드 설명
__construct ( array $patternMap = null )
attach ( Prooph\Common\Event\ActionEventEmitter $events ) : void
onRoute ( Prooph\Common\Event\ActionEvent $actionEvent )
onRouteMessage ( Prooph\Common\Event\ActionEvent $actionEvent )
route ( string $pattern )
to ( string | object | callable $handler )

비공개 메소드들

메소드 설명
onRouteEvent ( Prooph\Common\Event\ActionEvent $actionEvent )
onRouteToSingleHandler ( Prooph\Common\Event\ActionEvent $actionEvent )

메소드 상세

__construct() 공개 메소드

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

attach() 공개 메소드

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

onRoute() 공개 메소드

사용 중단: Will be removed with v6.0, use method onRouteMessage instead
public onRoute ( 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 $pattern )
$pattern string

to() 공개 메소드

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

프로퍼티 상세

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

protected $patternMap

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

protected string $tmpPattern
리턴 string