<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Controller\Site;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\Persistence\ManagerRegistry;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Knp\Component\Pager\PaginatorInterface;
/**
* Controller used to manage current user.
*
* @author Romain Monteil <monteil.romain@gmail.com>
*/
#[Route('/dev/search')]
class SearchController extends AbstractController {
#[Route('/category', methods: ['GET', 'POST'], name: 'category')]
public function category(Request $request, ManagerRegistry $doctrine) {
$em = $doctrine->getManager();
return $this->render('pages/search/category.html.twig', [
]);
}
#[Route('/destination', methods: ['GET', 'POST'], name: 'destination')]
public function destination(Request $request, ManagerRegistry $doctrine) {
$em = $doctrine->getManager();
return $this->render('pages/search/destination.html.twig', [
]);
}
#[Route('/result', methods: ['GET', 'POST'], name: 'result')]
public function result(Request $request, ManagerRegistry $doctrine) {
$em = $doctrine->getManager();
return $this->render('pages/search/result.html.twig', [
]);
}
#[Route('/details-experience', methods: ['GET', 'POST'], name: 'details_experience')]
public function detailsExperience(Request $request, ManagerRegistry $doctrine) {
$em = $doctrine->getManager();
return $this->render('pages/cart/detailsExperience.html.twig', [
]);
}
}