PHP Класс Prooph\ServiceBus\QueryBus

The query bus dispatches a query message to a finder. The query is maybe dispatched async so the bus returns a promise which gets either resolved with the response of the finder or rejected with an exception. Additionally the finder can provide an update status but this is not guaranteed.
Автор: Alexander Miertsch ([email protected])
Наследование: extends MessageBus
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
dispatch ( mixed $query ) : Promise
setActionEventEmitter ( Prooph\Common\Event\ActionEventEmitter $actionEventDispatcher ) : void Inject an ActionEventDispatcher instance

Описание методов

dispatch() публичный Метод

public dispatch ( mixed $query ) : Promise
$query mixed
Результат React\Promise\Promise

setActionEventEmitter() публичный Метод

Inject an ActionEventDispatcher instance
public setActionEventEmitter ( Prooph\Common\Event\ActionEventEmitter $actionEventDispatcher ) : void
$actionEventDispatcher Prooph\Common\Event\ActionEventEmitter
Результат void