<?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/account')]
class AccountController extends AbstractController {
#[Route('/setting', methods: ['GET', 'POST'], name: 'booker_setting')]
public function settingbooker(Request $request, ManagerRegistry $doctrine) {
$em = $doctrine->getManager();
return $this->render('pages/account/booker-setting.html.twig', [
]);
}
#[Route('/login', methods: ['GET', 'POST'], name: 'login')]
public function login(Request $request, ManagerRegistry $doctrine): Response
{
return $this->render('security/login.html.twig', [
]);
}
#[Route('/change-password', methods: ['GET', 'POST'], name: 'password_forgotten')]
public function changePassword(Request $request, ManagerRegistry $doctrine): Response
{
return $this->render('security/change-password.html.twig', [
]);
}
#[Route('/coach-registration', methods: ['GET', 'POST'], name: 'coach_registration')]
public function coachregistration(Request $request, ManagerRegistry $doctrine): Response
{
return $this->render('pages/account/coach-registration.html.twig', [
]);
}
#[Route('/booker-registration', methods: ['GET', 'POST'], name: 'booker_registration')]
public function bookerregistration(Request $request, ManagerRegistry $doctrine): Response
{
return $this->render('pages/account/booker-registration.html.twig', [
]);
}
}