src/Controller/BackController.php line 20

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\HttpFoundation\Request;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
  8. /**
  9.  * @Route("/")
  10.  */
  11. class BackController extends AbstractController
  12. {
  13.     /**
  14.      * @Route("/", name="accueil_back", methods={"GET"})
  15.      * @Security("is_granted('ROLE_USER')")
  16.      */
  17.     public function accueil(): Response
  18.     {
  19.         return $this->render('back/accueil.html.twig', [
  20.         ]);
  21.     }
  22. }