getParsedBody(); $command->setField('token', (string)$request->getQueryParam('token', '')); $command->setField('type', (string)$request->getQueryParam('type', '')); $this->setCommandFields($command, $requestBody); return $command; } /** * @param DomainEventBus $eventBus * @param CommandResult $result * * @return void */ protected function emitSuccessEvent(DomainEventBus $eventBus, CommandResult $result) { $eventBus->emit('BookingCanceled', $result); } }