src/Controller/DashboardController.php line 14

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 DashboardController extends AbstractController
  6. {
  7.     /**
  8.      * @Route("/", name="main")
  9.      */
  10.     public function main()
  11.     {
  12.         return $this->redirectToRoute('users');
  13.     }
  14.     /**
  15.      * @Route("/admin/", name="dashboard")
  16.      */
  17.     public function index()
  18.     {
  19.         return $this->redirectToRoute('users');
  20.         return $this->render('dashboard/index.html.twig', []);
  21.     }
  22. }