public function handle(CommandMessageInterface $command, UnitOfWorkInterface $unitOfWork, InterceptorChainInterface $interceptorChain) { $auditListener = new AuditingUnitOfWorkListener($command, $this->auditDataProvider, $this->auditLogger); $unitOfWork->registerListener($auditListener); $returnValue = $interceptorChain->proceed(); $auditListener->setReturnValue($returnValue); return $returnValue; }
public function handle(CommandMessageInterface $commandMessage, UnitOfWorkInterface $unitOfWork, InterceptorChainInterface $interceptorChain) { return $interceptorChain->proceed(); }
public function handle(CommandMessageInterface $commandMessage, UnitOfWorkInterface $unitOfWork, InterceptorChainInterface $interceptorChain) { $unitOfWork->registerListener(new AggregateListenerAdapter($this->workingAggregate)); return $interceptorChain->proceed(); }