src/Controller/Site/AccountController.php line 62

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/account')]
  25. class AccountController extends AbstractController {
  26.     #[Route('/setting'methods: ['GET''POST'], name'booker_setting')]
  27.     public function settingbooker(Request $requestManagerRegistry $doctrine) {
  28.         $em $doctrine->getManager();
  29.         return $this->render('pages/account/booker-setting.html.twig', [
  30.         ]);
  31.     }
  32.     
  33.     #[Route('/login'methods: ['GET''POST'], name'login')]
  34.     public function login(Request $requestManagerRegistry $doctrine): Response
  35.     {
  36.         return $this->render('security/login.html.twig', [
  37.         ]);
  38.     }
  39.     
  40.     
  41.     #[Route('/change-password'methods: ['GET''POST'], name'password_forgotten')]
  42.     public function changePassword(Request $requestManagerRegistry $doctrine): Response
  43.     {
  44.         return $this->render('security/change-password.html.twig', [
  45.         ]);
  46.     }
  47.     
  48.     #[Route('/coach-registration'methods: ['GET''POST'], name'coach_registration')]
  49.     public function coachregistration(Request $requestManagerRegistry $doctrine): Response
  50.     {
  51.         return $this->render('pages/account/coach-registration.html.twig', [
  52.         ]);
  53.     }
  54.     
  55.     #[Route('/booker-registration'methods: ['GET''POST'], name'booker_registration')]
  56.     public function bookerregistration(Request $requestManagerRegistry $doctrine): Response
  57.     {
  58.         return $this->render('pages/account/booker-registration.html.twig', [
  59.         ]);
  60.     }
  61.    
  62. }