src/Controller/ApplicantController.php line 117

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use App\Entity\Applicant;
  4. use App\Form\ApplicantType;
  5. use App\Repository\ApplicantRepository;
  6. use App\Repository\RefrenceRepository;
  7. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  8. use Symfony\Component\HttpFoundation\Request;
  9. use Symfony\Component\HttpFoundation\Response;
  10. use Symfony\Component\Form\Extension\Core\Type\SubmitType;
  11. use Symfony\Component\Form\Extension\Core\Type\TextType;
  12. use Symfony\Component\Routing\Annotation\Route;
  13. use App\Entity\Refrence;
  14. //PHPMailer Package
  15. //Import PHPMailer classes into the global namespace
  16. //These must be at the top of your script, not inside a function
  17. use PHPMailer\PHPMailer\PHPMailer;
  18. use PHPMailer\PHPMailer\SMTP;
  19. use PHPMailer\PHPMailer\Exception;
  20. //Load Composer's autoloader
  21. //require 'vendor/autoload.php';
  22. /**
  23.  * @Route("/applicant")
  24.  */
  25. class ApplicantController extends AbstractController
  26. {
  27. /*    protected function sendrefmail($mail,$refEmail,$subject, $message)
  28.     {
  29. //Create an instance; passing `true` enables exceptions
  30.     //Email Ref1
  31.     
  32.     $mail->addAddress($refEmail, 'Reference Email');     //Add a recipient
  33.    // $mail->addAddress('ellen@example.com');               //Name is optional
  34.    // $mail->addReplyTo('info@example.com', 'Information');
  35.    // $mail->addCC('mndang@health.ucsd.edu');
  36.     //$mail->addBCC('bcc@example.com');
  37.     //Attachments
  38.    // $mail->addAttachment('/var/tmp/file.tar.gz');         //Add attachments
  39.     //$mail->addAttachment('/tmp/image.jpg', 'new.jpg');    //Optional name
  40.     //Content
  41.     $mail->Subject =  $subject;
  42.     $mail->Body    =  $message;
  43.   //  $mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
  44.     $mail->send();
  45.     echo 'Message has been sent';
  46.     }
  47. */
  48.     /**
  49.      * @Route("/", name="app_applicant_index", methods={"GET"})
  50.      */
  51.     public function index(ApplicantRepository $applicantRepository): Response
  52.     {
  53.         if ($this->container->get('security.authorization_checker')->isGranted('IS_AUTHENTICATED_FULLY')) {
  54.             $user $this->container->get('security.token_storage')->getToken()->getUser();
  55.             $username $user->getUsername();
  56.            // $useremail = $user->getEmail();
  57.             $UserRoles $user->getRoles();
  58.             
  59.         }
  60.         if (in_array("ROLE_ADMIN",$UserRoles))
  61.         {
  62.             $applicants =  $applicantRepository->findAll();
  63.         } elseif (in_array("ROLE_BODY",$UserRoles)) {
  64.             $applicants =  $applicantRepository->findByDivision('Body');
  65.         } elseif (in_array("ROLE_MSK",$UserRoles)) {
  66.             $applicants =  $applicantRepository->findByDivision('MSK');
  67.         } elseif (in_array("ROLE_MRI",$UserRoles)) {
  68.         $applicants =  $applicantRepository->findByDivision('MRI');
  69.         } elseif (in_array("ROLE_WOMEN",$UserRoles)) {
  70.             $applicants =  $applicantRepository->findByDivision('Women');
  71.     } elseif (in_array("ROLE_BREAST",$UserRoles)) {
  72.         $applicants =  $applicantRepository->findByDivision('Breast');
  73.  } elseif (in_array("ROLE_NUC",$UserRoles)) {
  74.         $applicants =  $applicantRepository->findByDivision('PET');
  75. }elseif (in_array("ROLE_CHEST",$UserRoles)) {
  76.     $applicants =  $applicantRepository->findByDivision('Chest');
  77. }
  78.         for ($i=0$i<count($applicants);$i++)
  79.         {
  80.             $refs $applicants[$i]->getRef();
  81.             $num 0;
  82.             foreach ($refs as $ref)
  83.             {
  84.                 if ($ref->getRefLetter() == 'Please upload')
  85.                 {
  86.                     
  87.                 }else {
  88.                     $num $num+1;
  89.                 }
  90.             }
  91.             $applicants[$i]->setRefLtNum($num);
  92.         }
  93.         return $this->render('applicant/index.html.twig', [
  94.             'applicants' => $applicants,
  95.         ]);
  96.     }
  97.     /**
  98.      * @Route("/new", name="app_applicant_new", methods={"GET", "POST"})
  99.      */
  100.     public function new(Request $requestApplicantRepository $applicantRepositoryRefrenceRepository $refrenceRepository): Response
  101.     {
  102.         $applicant = new Applicant();
  103.         $form $this->createForm(ApplicantType::class, $applicant);
  104.         $form->handleRequest($request);
  105.         if ($form->isSubmitted() && $form->isValid()) {
  106. //get App Form File name
  107.             $appFile $form->get('appForm')->getData();
  108.             print $appFile;
  109.             if ($appFile){
  110.                 
  111.                 $newAFilename md5(uniqid()).'.'.$appFile->guessClientExtension();
  112.                 // Move the file to the directory where brochures are stored
  113.                 try {
  114.                     $appFile->move(
  115.                         $this->getParameter('brochures_directory'),
  116.                         $newAFilename
  117.                     );
  118.                 } catch (FileException $e) {
  119.                     // ... handle exception if something happens during file upload
  120.                 }
  121.             }
  122.             $applicant->setApplicationForm($newAFilename);
  123. //get personal statment filename
  124. $psFile $form->get('PersonalStat')->getData();
  125.           
  126.             if ($psFile){
  127.                 
  128.                 $newpsFilename md5(uniqid()).'.'.$psFile->guessClientExtension();
  129.                 // Move the file to the directory where brochures are stored
  130.                 try {
  131.                     $psFile->move(
  132.                         $this->getParameter('brochures_directory'),
  133.                         $newpsFilename
  134.                     );
  135.                 } catch (FileException $e) {
  136.                     // ... handle exception if something happens during file upload
  137.                 }
  138.             }
  139.             $applicant->setPersonal($newpsFilename);
  140. //get CV filename
  141. $cvFile $form->get('CVLink')->getData();
  142.           
  143.             if ($cvFile){
  144.                 
  145.                 $newcvFilename md5(uniqid()).'.'.$cvFile->guessClientExtension();
  146.                 // Move the file to the directory where brochures are stored
  147.                 try {
  148.                     $cvFile->move(
  149.                         $this->getParameter('brochures_directory'),
  150.                         $newcvFilename
  151.                     );
  152.                 } catch (FileException $e) {
  153.                     // ... handle exception if something happens during file upload
  154.                 }
  155.             }
  156.             $applicant->setCV($newcvFilename);
  157. //get Dean's letter filename
  158. $dlFile $form->get('dlFile')->getData();
  159.           
  160.             if ($dlFile){
  161.                 
  162.                 $newdlFilename md5(uniqid()).'.'.$dlFile->guessClientExtension();
  163.                 // Move the file to the directory where brochures are stored
  164.                 try {
  165.                     $dlFile->move(
  166.                         $this->getParameter('brochures_directory'),
  167.                         $newdlFilename
  168.                     );
  169.                 } catch (FileException $e) {
  170.                     // ... handle exception if something happens during file upload
  171.                 }
  172.             }
  173.             $applicant->setDeanLetter($newdlFilename);
  174. //get Medical School Diploma filename
  175. $mdFile $form->get('mdFile')->getData();
  176.           
  177.             if ($mdFile){
  178.                 
  179.                 $newmdFilename md5(uniqid()).'.'.$mdFile->guessClientExtension();
  180.                 // Move the file to the directory where brochures are stored
  181.                 try {
  182.                     $mdFile->move(
  183.                         $this->getParameter('brochures_directory'),
  184.                         $newmdFilename
  185.                     );
  186.                 } catch (FileException $e) {
  187.                     // ... handle exception if something happens during file upload
  188.                 }
  189.             }
  190.             $applicant->setMedSchoolD($newmdFilename);
  191. //get USMLE file name
  192. $usmleFile $form->get('usfile')->getData();
  193.           
  194.             if ($usmleFile){
  195.                 
  196.                 $newusmleFilename md5(uniqid()).'.'.$usmleFile->guessClientExtension();
  197.                 // Move the file to the directory where brochures are stored
  198.                 try {
  199.                     $usmleFile->move(
  200.                         $this->getParameter('brochures_directory'),
  201.                         $newusmleFilename
  202.                     );
  203.                 } catch (FileException $e) {
  204.                     // ... handle exception if something happens during file upload
  205.                 }
  206.             }
  207.             $applicant->setUSMLE($newusmleFilename);
  208.             $refrence = new Refrence();
  209.             $refrence->setName($form->get('Ref1Name')->getData());
  210.             $refrence->setEmail($form->get('Ref1Email')->getData());
  211.             $refrence->setJobTitle($form->get('Ref1Letter')->getData());
  212.             $refrence->setAffiliation('Please add');
  213.             $refrence->setPhone('Please add');
  214.             $refrence->setAddress('Please add');
  215.             $refrence->setRefLetter('Please upload');
  216.             $refrenceRepository->add($refrencetrue);
  217.             
  218.             // add applicant to database
  219.             $applicantRepository->add($applicanttrue);
  220.             $applicant->addRef($refrence);
  221.             $refID $refrence->getId();
  222.             //local URL 
  223.            //$url = 'http://127.0.0.1:8000/refrence/'.$refID.'/edit';
  224.           $url 'http://rad-sdsc.ucsd.edu/refrence/'.$refID.'/edit';
  225.             $to $form->get('Ref1Email')->getData();
  226.             $headers 'From: eghobrial@ucsd.edu' '\r\n' 'CC: eghobrial@ucsd.edu';
  227.             $appName $form->get('Name')->getData();
  228.             $appEmail $form->get('Email')->getData();
  229.             $appDiv $form->get('Division')->getData();
  230.             $ref1Name $form->get('Ref1Name')->getData();
  231.             $ref1Email $form->get('Ref1Email')->getData();
  232.             $ref2Name $form->get('Ref2Name')->getData();
  233.             $ref2Email $form->get('Ref2Email')->getData();
  234.             $ref3Name $form->get('Ref3Name')->getData();
  235.             $ref3Email $form->get('Ref3Email')->getData();
  236.             $refrence2 = new Refrence();
  237.             $refrence2->setName($form->get('Ref2Name')->getData());
  238.             $refrence2->setEmail($form->get('Ref2Email')->getData());
  239.             $refrence2->setJobTitle($form->get('Ref2Letter')->getData());
  240.             $refrence2->setAffiliation('Please add');
  241.             $refrence2->setPhone('Please add');
  242.             $refrence2->setAddress('Please add');
  243.             $refrence2->setRefLetter('Please upload');
  244.             $refrenceRepository->add($refrence2true);
  245.             $applicant->addRef($refrence2);
  246.             $refID2 $refrence2->getId();
  247.             //local URL
  248.           //     $url2 = 'http://127.0.0.1:8000/refrence/'.$refID2.'/edit';
  249.             $url2 'http://rad-sdsc.ucsd.edu/refrence/'.$refID2.'/edit';
  250.             $refrence3 = new Refrence();
  251.             $refrence3->setName($form->get('Ref3Name')->getData());
  252.             $refrence3->setEmail($form->get('Ref3Email')->getData());
  253.             $refrence3->setJobTitle($form->get('Ref3Letter')->getData());
  254.             $refrence3->setAffiliation('Please add');
  255.             $refrence3->setPhone('Please add');
  256.             $refrence3->setAddress('Please add');
  257.             $refrence3->setRefLetter('Please upload');
  258.             $refrenceRepository->add($refrence3true);
  259.            
  260.             
  261.             $applicant->addRef($refrence3);
  262.             $refID3 $refrence3->getId();
  263.             //local URL
  264.             //  $url3 = 'http://127.0.0.1:8000/refrence/'.$refID3.'/edit';
  265.            $url3 'http://rad-sdsc.ucsd.edu/refrence/'.$refID3.'/edit';
  266.             $subject 'Recommendation Letter Request -- UCSD Radiology -- '.$appDiv.' Division Fellowship for Dr. '.$appName;
  267.             $message $appName.' has selected you to provide a letter of recommendation as they apply for a fellowship position with 
  268.             the Department of Radiology at UCSD '$appDiv.'. Please submit a letter of recommendation as a PDF to the following URL: '.$url.' Feel free to reach out to 
  269.             Myra Dang (mndang@health.ucsd.edu), Radiology Fellowship Coordinator, if you have any questions. * Reference #1*, '$ref1Email.' ';
  270.             $message2 $appName.' has selected you to provide a letter of recommendation as they apply for a fellowship position with 
  271.             the Department of Radiology at UCSD'$appDiv.'. Please submit a letter of recommendation as a PDF to the following URL: '.$url2.' Feel free to reach out to 
  272.             Myra Dang (mndang@health.ucsd.edu), Radiology Fellowship Coordinator, if you have any questions. *Reference #2*, '$ref2Email.' ';
  273.             $message3 $appName.' has selected you to provide a letter of recommendation as they apply for a fellowship position with 
  274.             the Department of Radiology at UCSD'$appDiv.'. Please submit a letter of recommendation as a PDF to the following URL: '.$url3.' Feel free to reach out to 
  275.             Myra Dang (mndang@health.ucsd.edu), Radiology Fellowship Coordinator, if you have any questions. *Reference #3*, '$ref3Email.' ';
  276.          //   $mailsent = mail($to,$subject,$message);
  277.       /*   $mail = new PHPMailer(true);
  278.          //Server settings
  279.          $mail->SMTPDebug = SMTP::DEBUG_SERVER;                      //Enable verbose debug output
  280.          $mail->isSMTP();                                            //Send using SMTP
  281.          $mail->Host       = 'smtp.ucsd.edu';                     //Set the SMTP server to send through
  282.          $mail->SMTPAuth   = true;                                   //Enable SMTP authentication
  283.          $mail->Username   = 'eghobrial@ucsd.edu';                     //SMTP username
  284.          $mail->Password   = 'Secret';                               //SMTP password
  285.          $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS;            //Enable implicit TLS encryption
  286.          $mail->Port       = 465;                                    //TCP port to connect to; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS`
  287.          //Recipients
  288.          $mail->setFrom('eghobrial@ucsd.edu', 'UCSD Radiology Dept Reference Request');
  289.          $mail->isHTML(true); 
  290.          $this->sendrefmail($mail,$ref1Email,$subject, $message);
  291.          $this->sendrefmail($mail,$ref2Email,$subject, $message2);
  292.          $this->sendrefmail($mail,$ref3Email,$subject, $message3);*/
  293.          $mailref1 mail($ref1Email,$subject$message);
  294.          $mailref2 mail($ref2Email,$subject$message2);
  295.          $mailref3 mail($ref3Email,$subject$message3);
  296.             
  297.         $mailrefa1 mail('eghobrial@ucsd.edu',$subject$message);
  298.         $mailrefa2 mail('eghobrial@ucsd.edu',$subject$message2);
  299.         $mailrefa3 mail('eghobrial@ucsd.edu',$subject$message3);
  300. if ($appDiv == 'MSK')
  301. {
  302.     //send a confirmation message
  303.         $appSub 'UCSD MSK Fellowship Application has been received';
  304.         $appmessage 'We appreciate your interest in our Musculoskeletal Imaging Fellowship and received your application. Please be patient as we process all applications, 
  305.         and we will keep you updated on your status as we start scheduling our virtual interviews for January 2025.';
  306.         $mailapp mail($appEmail,$appSub$appmessage);
  307. } elseif ($appDiv == 'Body')
  308. {
  309.     //send a confirmation message
  310.     $appSub 'UCSD Body Fellowship Application has been received';
  311.     $appmessage 'We appreciate your interest in our Body Imaging Fellowship and received your application. Please be patient as we process all applications, 
  312.     and we will keep you updated on your status as we start scheduling our virtual interviews for January 2025.';
  313.     $mailapp mail($appEmail,$appSub$appmessage);
  314. }elseif ($appDiv == 'Breast')
  315. {
  316.     //send a confirmation message
  317.     $appSub 'UCSD Breast Fellowship Application has been received';
  318.     $appmessage 'We appreciate your interest in our Breast Imaging Fellowship and received your application. Please be patient as we process all applications, 
  319.     and we will keep you updated on your status as we start scheduling our virtual interviews for January 2025.';
  320.     $mailapp mail($appEmail,$appSub$appmessage);
  321.     //replace email address
  322.     $subjectapp 'We received Dr. '.$appName.' for '.$appDiv' Division';
  323.             $mailsentApp mail('eghobrial@ucsd.edu',$subjectapp,'Application received and ready to be viewed on the portal');
  324. }elseif ($appDiv == 'Women')
  325. {
  326.     //send a confirmation message
  327.     $appSub 'UCSD Women Imaging Fellowship Application has been received';
  328.     $appmessage 'We appreciate your interest in our Women Imaging Fellowship and received your application. Please be patient as we process all applications, 
  329.     and we will keep you updated on your status as we start scheduling our virtual interviews for January 2025.';
  330.     $mailapp mail($appEmail,$appSub$appmessage);
  331.     //replace email address
  332.     $subjectapp 'We received Dr. '.$appName.' for '.$appDiv' Division';
  333.             $mailsentApp mail('eghobrial@ucsd.edu',$subjectapp,'Application received and ready to be viewed on the portal');
  334. }elseif ($appDiv == 'Chest')
  335. {
  336.     //send a confirmation message
  337.     $appSub 'UCSD Cardiothoracic Fellowship Application has been received';
  338.     $appmessage 'We appreciate your interest in our Cardiothoracic Imaging Fellowship and received your application. Please be patient as we process all applications, 
  339.     and we will keep you updated on your status as we start scheduling our virtual interviews for January 2025.';
  340.     $mailapp mail($appEmail,$appSub$appmessage);
  341.      //replace email address
  342.      $subjectapp 'We received Dr. '.$appName.' for '.$appDiv' Division';
  343.      $mailsentApp mail('eghobrial@ucsd.edu',$subjectapp,'Application received and ready to be viewed on the portal');
  344. }elseif ($appDiv == 'PET')
  345. {
  346.     //send a confirmation message
  347.     $appSub 'UCSD PET/CT Fellowship Application has been received';
  348.     $appmessage 'We appreciate your interest in our PET/CT Fellowship and received your application. Please be patient as we process all applications, 
  349.     and we will keep you updated on your status as we start scheduling our virtual interviews for January 2025.';
  350.     $mailapp mail($appEmail,$appSub$appmessage);
  351.      //replace email address
  352.      $subjectapp 'We received Dr. '.$appName.' for '.$appDiv' Division';
  353.      $mailsentApp mail('eghobrial@ucsd.edu',$subjectapp,'Application received and ready to be viewed on the portal');
  354. } elseif ($appDiv == 'MRI')
  355. {
  356.     //send a confirmation message
  357.     $appSub 'UCSD MRI Fellowship Application has been received';
  358.     $appmessage 'We appreciate your interest in our MRI Imaging Fellowship and received your application. Please be patient as we process all applications, 
  359.     and we will keep you updated on your status as we start scheduling our virtual interviews for January 2025.';
  360.     $mailapp mail($appEmail,$appSub$appmessage);
  361.      //replace email address
  362.      $subjectapp 'We received Dr. '.$appName.' for '.$appDiv' Division';
  363.      $mailsentApp mail('eghobrial@ucsd.edu',$subjectapp,'Application received and ready to be viewed on the portal');
  364. }
  365.     return $this->redirectToRoute('app_applicant_sucess', [], Response::HTTP_SEE_OTHER);
  366.         }
  367.     return $this->renderForm('applicant/new.html.twig', [
  368.         'applicant' => $applicant,
  369.         'form' => $form,
  370.     ]);
  371.        
  372.   
  373. }
  374. /**
  375.      * @Route("/sucess", name="app_applicant_sucess", methods={"GET"})
  376.      */
  377.     public function showsucess(): Response
  378.     {
  379.         return $this->render('applicant/sucess.html.twig');
  380.     }
  381.     /**
  382.      * @Route("/{id}", name="app_applicant_show", methods={"GET"})
  383.      */
  384.    public function show(Applicant $applicant): Response
  385.     {
  386.        
  387.         return $this->render('applicant/show.html.twig', [
  388.             'applicant' => $applicant,
  389.             'References' => $applicant->getRef(),
  390.         ]);
  391.     }
  392.     /**
  393.      * @Route("/{id}/edit", name="app_applicant_edit", methods={"GET", "POST"})
  394.      */
  395.   public function edit(Request $requestApplicant $applicantApplicantRepository $applicantRepository): Response
  396.     {
  397.         $form $this->createForm(ApplicantType::class, $applicant);
  398.         $form->handleRequest($request);
  399.         if ($form->isSubmitted() && $form->isValid()) {
  400. //get USMLE letter filename
  401. /*$usmleFile = $form->get('usfile')->getData();
  402.           
  403.             if ($usmleFile){
  404.                 
  405.                 $newusmleFilename = md5(uniqid()).'.'.$usmleFile->guessClientExtension();
  406.                 // Move the file to the directory where brochures are stored
  407.                 try {
  408.                     $usmleFile->move(
  409.                         $this->getParameter('brochures_directory'),
  410.                         $newusmleFilename
  411.                     );
  412.                 } catch (FileException $e) {
  413.                     // ... handle exception if something happens during file upload
  414.                 }
  415.             }
  416.             $applicant->setUSMLE($newusmleFilename);*/
  417. //get Dean's letter filename
  418. $dlFile $form->get('dlFile')->getData();
  419.           
  420.             if ($dlFile){
  421.                 
  422.                 $newdlFilename md5(uniqid()).'.'.$dlFile->guessClientExtension();
  423.                 // Move the file to the directory where brochures are stored
  424.                 try {
  425.                     $dlFile->move(
  426.                         $this->getParameter('brochures_directory'),
  427.                         $newdlFilename
  428.                     );
  429.                 } catch (FileException $e) {
  430.                     // ... handle exception if something happens during file upload
  431.                 }
  432.             }
  433.             $applicant->setDeanLetter($newdlFilename);
  434.             $applicantRepository->add($applicanttrue);
  435.             return $this->redirectToRoute('app_applicant_index', [], Response::HTTP_SEE_OTHER);
  436.         }
  437.         return $this->renderForm('applicant/edit.html.twig', [
  438.             'applicant' => $applicant,
  439.             'form' => $form,
  440.         ]);
  441.     }
  442.     /**
  443.      * @Route("/{id}/review", name="app_applicant_review", methods={"GET", "POST"})
  444.      */
  445.   public function review(Request $requestApplicant $applicantApplicantRepository $applicantRepository): Response
  446.   {
  447.  /*   $form = $this->createFormBuilder()
  448.     ->add('status', TextType::class,[
  449.         'label' => 'Status'])
  450.     ->add('status', TextType::class,[
  451.         'label' => 'Status'])
  452.     ->add('Review', SubmitType::class)
  453.     ->getForm();
  454.     $form->handleRequest($request);
  455. */
  456. if ($this->container->get('security.authorization_checker')->isGranted('IS_AUTHENTICATED_FULLY')) {
  457.     $user $this->container->get('security.token_storage')->getToken()->getUser();
  458.     $username $user->getUsername();
  459.    // $useremail = $user->getEmail();
  460.     $UserRoles $user->getRoles();
  461.     
  462. }
  463. $form $this->createForm(ApplicantType::class, $applicant);
  464. $form->handleRequest($request);    
  465.       if ($form->isSubmitted() && $form->isValid()) {
  466.         
  467.       $mynotes =   $form->get('Notes')->getData()." added by ".$username." on ".date("m-d-Y");
  468. $applicant->setNotes($mynotes);
  469.           $applicantRepository->add($applicanttrue);
  470.         //  return $this->redirectToRoute('app_applicant_index', [], Response::HTTP_SEE_OTHER);
  471.       }
  472.       return $this->renderForm('applicant/review.html.twig', [
  473.           'applicant' => $applicant,
  474.           'form' => $form,
  475.       ]);
  476.   }
  477.     /**
  478.      * @Route("/{id}", name="app_applicant_delete", methods={"POST"})
  479.      */
  480.   /*  public function delete(Request $request, Applicant $applicant, ApplicantRepository $applicantRepository): Response
  481.     {
  482.         if ($this->isCsrfTokenValid('delete'.$applicant->getId(), $request->request->get('_token'))) {
  483.             $applicantRepository->remove($applicant, true);
  484.         }
  485.         return $this->redirectToRoute('app_applicant_index', [], Response::HTTP_SEE_OTHER);
  486.     }
  487.     */
  488. }