src/Controller/Front/HomeController.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Controller\Front;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\Routing\Annotation\Route;
  5. use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface;
  6. class HomeController extends AbstractController
  7. {
  8.     /**
  9.      * @Route("/", name="homepage")
  10.      */
  11.     public function indexAction(CsrfTokenManagerInterface $tokenManager)
  12.     {
  13.         return $this->redirectToRoute('app_homepage');
  14.     }
  15. }