<?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')]
class PageController extends AbstractController {
#[Route('/', methods: ['GET', 'POST'], name: 'homepage')]
public function homepage(Request $request, ManagerRegistry $doctrine) {
$em = $doctrine->getManager();
return $this->render('pages/homepage.html.twig', [
]);
}
#[Route('/about-bookoach', methods: ['GET'], name: 'about')]
public function about(Request $request, ManagerRegistry $doctrine) {
$em = $doctrine->getManager();
return $this->render('pages/about.html.twig', [
]);
}
#[Route('/about-coach', methods: ['GET'], name: 'about_coach')]
public function aboutCoach(Request $request, ManagerRegistry $doctrine) {
$em = $doctrine->getManager();
return $this->render('pages/about-coach.html.twig', [
]);
}
#[Route('/about-booker', methods: ['GET'], name: 'about_booker')]
public function aboutBooker(Request $request, ManagerRegistry $doctrine) {
$em = $doctrine->getManager();
return $this->render('pages/about-booker.html.twig', [
]);
}
#[Route('/help-center', methods: ['GET'], name: 'help_center')]
public function helpCenter(Request $request, ManagerRegistry $doctrine) {
$em = $doctrine->getManager();
return $this->render('pages/helpcenter.html.twig', [
]);
}
#[Route('/faq', methods: ['GET'], name: 'faq')]
public function faq(Request $request, ManagerRegistry $doctrine) {
$em = $doctrine->getManager();
return $this->render('pages/faq.html.twig', [
]);
}
#[Route('/contact', methods: ['GET'], name: 'contact')]
public function contact(Request $request, ManagerRegistry $doctrine) {
$em = $doctrine->getManager();
return $this->render('pages/contact.html.twig', [
]);
}
#[Route('/terms-of-use', methods: ['GET'], name: 'terms_of_use')]
public function termsOfUse(Request $request, ManagerRegistry $doctrine) {
$em = $doctrine->getManager();
return $this->render('pages/static/terms.html.twig', [
]);
}
#[Route('/Confidentiality', methods: ['GET'], name: 'confidentiality')]
public function confidentiality(Request $request, ManagerRegistry $doctrine) {
$em = $doctrine->getManager();
return $this->render('pages/static/confidentiality.html.twig', [
]);
}
}