src/Controller/DefaultController.php line 31

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use App\Entity\Regiones;
  4. use App\Repository\ConfigurationRepository;
  5. use App\Twig\Extension\MediaExtension;
  6. use App\Utils\SeoUtils;
  7. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  8. use Symfony\Component\HttpFoundation\Request;
  9. use Symfony\Component\HttpFoundation\Response;
  10. use Symfony\Component\Mailer\MailerInterface;
  11. use Symfony\Component\Routing\Annotation\Route;
  12. use Symfony\Component\Validator\Validator\ValidatorInterface;
  13. use Symfony\Component\Mime\Email;
  14. use Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache;
  15. class DefaultController extends AbstractController
  16. {
  17.     private readonly SeoUtils $seoUtils;
  18.     public function __construct(SeoUtils $seoUtils)
  19.     {
  20.         $this->seoUtils $seoUtils;
  21.     }
  22.     /**
  23.      * @Route("/{reactRouting}", name="homepage", requirements={"reactRouting"=".+"}, defaults={"reactRouting": null}, priority=-10)
  24.      */
  25.     #[Cache(maxage3600smaxage3600, public: truemustRevalidatetrue)]
  26.     public function indexAction(): Response
  27.     {
  28.         return $this->render('default/index.html.twig');
  29.     }
  30. }