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
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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