src/Controller/HomeController.php line 17

  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\HttpFoundation\Response;
  5. use Symfony\Component\Routing\Annotation\Route;
  6. class HomeController extends AbstractController
  7. {
  8.     #[Route(
  9.         path'/',
  10.         name'home',
  11.         methods: ['GET']
  12.     )]
  13.     public function index(): Response
  14.     {
  15.         return $this->redirectToRoute('admin_dashboard_index');
  16.     }
  17. }