<?php
namespace App\Controller;
use App\Entity\Regiones;
use App\Repository\ConfigurationRepository;
use App\Twig\Extension\MediaExtension;
use App\Utils\SeoUtils;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Mailer\MailerInterface;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Validator\Validator\ValidatorInterface;
use Symfony\Component\Mime\Email;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Cache;
class DefaultController extends AbstractController
{
private readonly SeoUtils $seoUtils;
public function __construct(SeoUtils $seoUtils)
{
$this->seoUtils = $seoUtils;
}
/**
* @Route("/{reactRouting}", name="homepage", requirements={"reactRouting"=".+"}, defaults={"reactRouting": null}, priority=-10)
*/
#[Cache(maxage: 3600, smaxage: 3600, public: true, mustRevalidate: true)]
public function indexAction(): Response
{
return $this->render('default/index.html.twig');
}
}