예제 #1
0
 public function confirmRegistrationAction($id, $key)
 {
     $registration = $this->registrationRepo->getRegistrationByIdAndKey($id, $key);
     if ($registration->isEmpty()) {
         throw new NotFoundHttpException('Unknown registration.');
     }
     $command = new ConfirmRegistrationCommand();
     $command->registration = $registration->get();
     $this->commandBus->handle($command);
     return new RedirectResponse($this->router->generate('bcrmweb_registration_confirmed'));
 }