PHP Class Prooph\ServiceBus\Plugin\InvokeStrategy\FinderInvokeStrategy

This is a special invoke strategy for finders handling a query message and providing a response by resolving the deferred of the query dispatch. The invoke strategy can handle finders which have a method named like the short name of the query.
Author: Alexander Miertsch ([email protected])
Inheritance: implements Prooph\Common\Event\ActionEventListenerAggregate, use trait Prooph\Common\Event\DetachAggregateHandlers
ファイルを表示 Open project: prooph/service-bus

Public Methods

Method Description
__invoke ( Prooph\Common\Event\ActionEvent $actionEvent )
attach ( Prooph\Common\Event\ActionEventEmitter $dispatcher )

Private Methods

Method Description
determineQueryName ( mixed $query ) : string

Method Details

__invoke() public method

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

attach() public method

public attach ( Prooph\Common\Event\ActionEventEmitter $dispatcher )
$dispatcher Prooph\Common\Event\ActionEventEmitter