src/Controller/Site/PageController.php line 57

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')]
  25. class PageController extends AbstractController {
  26.     #[Route('/'methods: ['GET''POST'], name'homepage')]
  27.     public function homepage(Request $requestManagerRegistry $doctrine) {
  28.         $em $doctrine->getManager();
  29.         return $this->render('pages/homepage.html.twig', [
  30.         ]);
  31.     }
  32.     #[Route('/about-bookoach'methods: ['GET'], name'about')]
  33.     public function about(Request $requestManagerRegistry $doctrine) {
  34.         $em $doctrine->getManager();
  35.         return $this->render('pages/about.html.twig', [
  36.         ]);
  37.     }
  38.     #[Route('/about-coach'methods: ['GET'], name'about_coach')]
  39.     public function aboutCoach(Request $requestManagerRegistry $doctrine) {
  40.         $em $doctrine->getManager();
  41.         return $this->render('pages/about-coach.html.twig', [
  42.         ]);
  43.     }
  44.     #[Route('/about-booker'methods: ['GET'], name'about_booker')]
  45.     public function aboutBooker(Request $requestManagerRegistry $doctrine) {
  46.         $em $doctrine->getManager();
  47.         return $this->render('pages/about-booker.html.twig', [
  48.         ]);
  49.     }
  50.     #[Route('/help-center'methods: ['GET'], name'help_center')]
  51.     public function helpCenter(Request $requestManagerRegistry $doctrine) {
  52.         $em $doctrine->getManager();
  53.         return $this->render('pages/helpcenter.html.twig', [
  54.         ]);
  55.     }
  56.     #[Route('/faq'methods: ['GET'], name'faq')]
  57.     public function faq(Request $requestManagerRegistry $doctrine) {
  58.         $em $doctrine->getManager();
  59.         return $this->render('pages/faq.html.twig', [
  60.         ]);
  61.     }
  62.     #[Route('/contact'methods: ['GET'], name'contact')]
  63.     public function contact(Request $requestManagerRegistry $doctrine) {
  64.         $em $doctrine->getManager();
  65.         return $this->render('pages/contact.html.twig', [
  66.         ]);
  67.     }
  68.     #[Route('/terms-of-use'methods: ['GET'], name'terms_of_use')]
  69.     public function termsOfUse(Request $requestManagerRegistry $doctrine) {
  70.         $em $doctrine->getManager();
  71.         return $this->render('pages/static/terms.html.twig', [
  72.         ]);
  73.     }
  74.     #[Route('/Confidentiality'methods: ['GET'], name'confidentiality')]
  75.     public function confidentiality(Request $requestManagerRegistry $doctrine) {
  76.         $em $doctrine->getManager();
  77.         return $this->render('pages/static/confidentiality.html.twig', [
  78.         ]);
  79.     }
  80. }