PHP Class Prooph\ServiceBus\Plugin\Guard\FinalizeGuard

Inheritance: implements Prooph\Common\Event\ActionEventListenerAggregate, use trait Prooph\Common\Event\DetachAggregateHandlers
Show file Open project: prooph/service-bus Class Usage Examples

Public Methods

Method Description
__construct ( Prooph\ServiceBus\Plugin\Guard\AuthorizationService $authorizationService, boolean $exposeEventMessageName = false )
attach ( Prooph\Common\Event\ActionEventEmitter $events ) : void
onFinalize ( Prooph\Common\Event\ActionEvent $actionEvent )

Method Details

__construct() public method

public __construct ( Prooph\ServiceBus\Plugin\Guard\AuthorizationService $authorizationService, boolean $exposeEventMessageName = false )
$authorizationService Prooph\ServiceBus\Plugin\Guard\AuthorizationService
$exposeEventMessageName boolean

attach() public method

public attach ( Prooph\Common\Event\ActionEventEmitter $events ) : void
$events Prooph\Common\Event\ActionEventEmitter
return void

onFinalize() public method

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