PHP 클래스 Prooph\ServiceBus\Plugin\ServiceLocatorPlugin

This plugin can be used to lazy load message handlers. Initialize it with a Interop\Container\ContainerInterface and route your messages to the service id only.
저자: Alexander Miertsch ([email protected])
상속: implements Prooph\Common\Event\ActionEventListenerAggregate, use trait Prooph\Common\Event\DetachAggregateHandlers
파일 보기 프로젝트 열기: prooph/service-bus 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$serviceLocator Interop\Container\ContainerInterface

공개 메소드들

메소드 설명
__construct ( Interop\Container\ContainerInterface $serviceLocator )
attach ( Prooph\Common\Event\ActionEventEmitter $events ) : void
onLocateMessageHandler ( Prooph\Common\Event\ActionEvent $actionEvent )

메소드 상세

__construct() 공개 메소드

public __construct ( Interop\Container\ContainerInterface $serviceLocator )
$serviceLocator Interop\Container\ContainerInterface

attach() 공개 메소드

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

onLocateMessageHandler() 공개 메소드

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

프로퍼티 상세

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

protected ContainerInterface,Interop\Container $serviceLocator
리턴 Interop\Container\ContainerInterface