コード例 #1
0
 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;
 }
コード例 #2
0
 public function handle(CommandMessageInterface $commandMessage, UnitOfWorkInterface $unitOfWork, InterceptorChainInterface $interceptorChain)
 {
     return $interceptorChain->proceed();
 }
コード例 #3
0
 public function handle(CommandMessageInterface $commandMessage, UnitOfWorkInterface $unitOfWork, InterceptorChainInterface $interceptorChain)
 {
     $unitOfWork->registerListener(new AggregateListenerAdapter($this->workingAggregate));
     return $interceptorChain->proceed();
 }