<?php
namespace App\Controller;
use App\Form\ContactType;
use App\Form\CustomerFormType;
use App\Form\CustomerSupportcontactType;
use App\Entity\Enterprise;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Bridge\Twig\Mime\TemplatedEmail;
use Symfony\Component\Mailer\MailerInterface;
use Symfony\Contracts\Translation\TranslatorInterface;
/**
* controlleur qui gere la page d'accueil et la page merci
*/
class FrontController extends AbstractController
{
/**
* @return Response la page HTML
*/
#[Route(path: '/', name: 'front')]
public function index(): Response
{
return $this->redirectToRoute('app_login');
return $this->render('front/index.html.twig');
}
/**
* @return Response la page Merci au format HTML
*/
#[ROute(path: '/merci', name: 'thank')]
public function thank():Response
{
return $this->render('front/thank.html.twig');
}
}