getParsedBody(); $this->setCommandFields($addPaymentCommand, $requestBody); return $addPaymentCommand; } /** * @param DomainEventBus $eventBus * @param CommandResult $result * * @return void */ protected function emitSuccessEvent(DomainEventBus $eventBus, CommandResult $result) { $eventBus->emit('payment.updated', $result); } }