src/Controller/FrontController.php line 31

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use App\Form\ContactType;
  4. use App\Form\CustomerFormType;
  5. use App\Form\CustomerSupportcontactType;
  6. use App\Entity\Enterprise;
  7. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  8. use Symfony\Component\HttpFoundation\Response;
  9. use Symfony\Component\HttpFoundation\Request;
  10. use Symfony\Component\Routing\Annotation\Route;
  11. use Symfony\Bridge\Twig\Mime\TemplatedEmail;
  12. use Symfony\Component\Mailer\MailerInterface;
  13. use Symfony\Contracts\Translation\TranslatorInterface;
  14. /**
  15.  * controlleur qui gere la page d'accueil et la page merci
  16.  */
  17. class FrontController extends AbstractController
  18. {
  19.     /**
  20.      * @return Response la page HTML
  21.      */
  22.     #[Route(path'/'name'front')]
  23.     public function index(): Response
  24.     {
  25.         return $this->redirectToRoute('app_login');
  26.         return $this->render('front/index.html.twig');
  27.     }
  28.     
  29.     /**
  30.      * @return Response la page Merci au format HTML
  31.      */
  32.     #[ROute(path'/merci'name'thank')]
  33.     public function thank():Response
  34.     {
  35.         return $this->render('front/thank.html.twig');
  36.     }
  37.     
  38.     
  39.     
  40. }