src/Controller/HomeController.php line 23

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\Routing\Annotation\Route;
  5. class HomeController extends AbstractController {
  6.     /**
  7.      * @Route("/admin", name="home")
  8.      * @return \Symfony\Component\HttpFoundation\Response
  9.      */
  10.     public function index () {
  11.         return $this->render('admin/dashboard/index.html.twig');
  12.     }
  13.     /**
  14.      * @Route("/", name="home-connexion")
  15.      * @return \Symfony\Component\HttpFoundation\Response
  16.      */
  17.     public function home () {
  18.         return $this->redirectToRoute('home');
  19.     }
  20. }