2026-01-19 21:08:04 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Controller;
|
|
|
|
|
|
|
|
|
|
use App\Entity\Account;
|
|
|
|
|
use App\Entity\AccountResetPasswordRequest;
|
|
|
|
|
use App\Form\RequestPasswordConfirmType;
|
|
|
|
|
use App\Form\RequestPasswordRequestType;
|
|
|
|
|
use App\Logger\AppLogger;
|
|
|
|
|
use App\Service\ResetPassword\Event\ResetPasswordConfirmEvent;
|
|
|
|
|
use App\Service\ResetPassword\Event\ResetPasswordEvent;
|
|
|
|
|
use Doctrine\ORM\EntityManagerInterface;
|
2026-01-20 11:20:28 +01:00
|
|
|
use Fkrzski\RobotsTxt\RobotsTxt;
|
2026-01-19 21:08:04 +01:00
|
|
|
use KnpU\OAuth2ClientBundle\Client\ClientRegistry;
|
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|
|
|
|
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
|
|
|
|
use Symfony\Component\HttpFoundation\JsonResponse;
|
|
|
|
|
use Symfony\Component\HttpFoundation\Request;
|
|
|
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
|
|
|
use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;
|
|
|
|
|
use Symfony\Component\Routing\Attribute\Route;
|
|
|
|
|
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
|
|
|
|
|
use Symfony\Contracts\HttpClient\HttpClientInterface;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ReserverController extends AbstractController
|
|
|
|
|
{
|
|
|
|
|
|
2026-01-20 11:20:28 +01:00
|
|
|
#[Route('/robots.txt', name: 'robots_txt', defaults: ['_format' => 'txt'])]
|
|
|
|
|
public function index(Request $request): Response
|
|
|
|
|
{
|
|
|
|
|
$robots = new RobotsTxt();
|
|
|
|
|
$robots->disallow('/signature');
|
|
|
|
|
$robots->disallow('/payment');
|
|
|
|
|
$robots->crawlDelay(60);
|
|
|
|
|
$robots->allow('/reservation');
|
|
|
|
|
$robots->sitemap($request->getSchemeAndHttpHost().$this->generateUrl('PrestaSitemapBundle_index',['_format' => 'xml']));
|
|
|
|
|
|
|
|
|
|
return new Response($robots->toString(),Response::HTTP_OK,[
|
|
|
|
|
'Content-Type' => 'text/plain'
|
|
|
|
|
]);
|
|
|
|
|
}
|
2026-01-20 11:58:29 +01:00
|
|
|
#[Route('/reservation', name: 'reservation')]
|
2026-01-19 21:08:04 +01:00
|
|
|
public function revervation()
|
|
|
|
|
{
|
|
|
|
|
return $this->render('revervation/home.twig');
|
|
|
|
|
}
|
2026-01-20 11:58:29 +01:00
|
|
|
#[Route('/reservation/contact', name: 'reservation_contact')]
|
2026-01-19 21:08:04 +01:00
|
|
|
public function revervationContact()
|
|
|
|
|
{
|
|
|
|
|
return $this->render('revervation/home.twig');
|
|
|
|
|
}
|
2026-01-20 11:20:28 +01:00
|
|
|
#[Route('/reservation/recherche', name: 'reservation_search')]
|
2026-01-19 21:08:04 +01:00
|
|
|
public function recherche()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-20 11:58:29 +01:00
|
|
|
#[Route('/reservation/mentions-legal', name: 'reservation_mentions-legal')]
|
2026-01-19 21:08:04 +01:00
|
|
|
public function revervationLegal()
|
|
|
|
|
{
|
|
|
|
|
return $this->render('revervation/legal.twig');
|
|
|
|
|
}
|
2026-01-20 11:58:29 +01:00
|
|
|
#[Route('/reservation/rgpd', name: 'reservation_rgpd')]
|
2026-01-19 21:08:04 +01:00
|
|
|
public function revervationRgpd()
|
|
|
|
|
{
|
|
|
|
|
return $this->render('revervation/rgpd.twig');
|
|
|
|
|
}
|
2026-01-20 11:58:29 +01:00
|
|
|
#[Route('/reservation/cookies', name: 'reservation_cookies')]
|
2026-01-19 21:08:04 +01:00
|
|
|
public function revervationCookies()
|
|
|
|
|
{
|
|
|
|
|
return $this->render('revervation/cookies.twig');
|
|
|
|
|
}
|
2026-01-20 11:58:29 +01:00
|
|
|
#[Route('/reservation/cgv', name: 'reservation_cgv')]
|
2026-01-19 21:08:04 +01:00
|
|
|
public function revervationCgv()
|
|
|
|
|
{
|
|
|
|
|
return $this->render('revervation/cgv.twig');
|
|
|
|
|
}
|
2026-01-20 11:58:29 +01:00
|
|
|
#[Route('/reservation/hosting', name: 'reservation_hosting')]
|
2026-01-19 21:08:04 +01:00
|
|
|
public function revervationHosting()
|
|
|
|
|
{
|
|
|
|
|
return $this->render('revervation/hosting.twig');
|
|
|
|
|
}
|
|
|
|
|
}
|