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.
Показать файл
Открыть проект
Примеры использования класса
Защищенные свойства (Protected)
Открытые методы
Метод |
Описание |
|
__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 |
|
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 |
|