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.
파일 보기
프로젝트 열기: prooph/service-bus
1 사용 예제들
보호된 프로퍼티들
공개 메소드들
메소드 상세
public __construct ( Interop\Container\ContainerInterface $serviceLocator ) |
$serviceLocator |
Interop\Container\ContainerInterface |
|
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 |
|