src/Controller/Site/SearchController.php line 47

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Symfony package.
  4.  *
  5.  * (c) Fabien Potencier <fabien@symfony.com>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. namespace App\Controller\Site;
  11. use Doctrine\ORM\EntityManagerInterface;
  12. use Doctrine\Persistence\ManagerRegistry;
  13. use Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted;
  14. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  15. use Symfony\Component\HttpFoundation\Request;
  16. use Symfony\Component\HttpFoundation\Response;
  17. use Symfony\Component\Routing\Annotation\Route;
  18. use Knp\Component\Pager\PaginatorInterface;
  19. /**
  20.  * Controller used to manage current user.
  21.  *
  22.  * @author Romain Monteil <monteil.romain@gmail.com>
  23.  */
  24. #[Route('/dev/search')]
  25. class SearchController extends AbstractController {
  26.     #[Route('/category'methods: ['GET''POST'], name'category')]
  27.     public function category(Request $requestManagerRegistry $doctrine) {
  28.         $em $doctrine->getManager();
  29.         return $this->render('pages/search/category.html.twig', [
  30.         ]);
  31.     }
  32.     #[Route('/destination'methods: ['GET''POST'], name'destination')]
  33.     public function destination(Request $requestManagerRegistry $doctrine) {
  34.         $em $doctrine->getManager();
  35.         return $this->render('pages/search/destination.html.twig', [
  36.         ]);
  37.     }
  38.     #[Route('/result'methods: ['GET''POST'], name'result')]
  39.     public function result(Request $requestManagerRegistry $doctrine) {
  40.         $em $doctrine->getManager();
  41.         return $this->render('pages/search/result.html.twig', [
  42.         ]);
  43.     }
  44.     #[Route('/details-experience'methods: ['GET''POST'], name'details_experience')]
  45.     public function detailsExperience(Request $requestManagerRegistry $doctrine) {
  46.         $em $doctrine->getManager();
  47.         return $this->render('pages/cart/detailsExperience.html.twig', [
  48.         ]);
  49.     }
  50. }