isMethod(Request::METHOD_POST)) { $this->mailer->sendFollowUp($submission); $this->addFlash('success', 'Die zweite E-Mail wurde versendet'); return new HxRedirectResponse($this->generateUrl('app_admin_application_form_submission_detail', [ 'uuid' => $submission->getUuid(), 'r' => $request->query->get('r'), ])); } return $this->render('admin/application_form_submission/modal_send_follow_up.html.twig', [ 'submission' => $submission, // Named in the confirmation so a reviewer sees whether the handout the wording // promises is actually going out. 'handout' => $this->mailer->findHandout(), ]); } }