src/Controller/DefaultController.php line 19

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Harmonizely\Controller;
  4. use Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache;
  5. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  6. use Symfony\Component\HttpFoundation\Response;
  7. use Symfony\Component\Routing\Annotation\Route;
  8. class DefaultController extends AbstractController
  9. {
  10.     /**
  11.      * @Route("/", methods={"GET"}, name="home_index", host="%secure_host%")
  12.      * @Cache(smaxage="172800")
  13.      */
  14.     public function index(): Response
  15.     {
  16.         return $this->redirectToRoute('dashboard_index');
  17.     }
  18. }