<?php
namespace App\Controller;
use Psr\Log\LoggerInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class PoliciesController extends AbstractController
{
private $logger;
public function __construct(
LoggerInterface $logger
) {
$this->logger = $logger;
}
#[Route('/politica-privacidad', name: 'app_privacy_policy', methods: ["GET"])]
public function privacyPolicy(): Response
{
$this->logger->debug(__METHOD__);
return $this->render('policies/privacy_policy.html.twig', []);
}
#[Route('/aviso-legal', name: 'app_legal_notice', methods: ["GET"])]
public function legalNotice(): Response
{
$this->logger->debug(__METHOD__);
return $this->render('policies/legal_notice.html.twig', []);
}
#[Route('/terminos-uso', name: 'app_terms_of_use', methods: ["GET"])]
public function termsOfUse(): Response
{
$this->logger->debug(__METHOD__);
return $this->render('policies/terms_of_use.html.twig', []);
}
#[Route('/politica-cookies', name: 'app_cookie_policy', methods: ["GET"])]
public function cookiePolicy(): Response
{
$this->logger->debug(__METHOD__);
return $this->render('policies/cookie_policy.html.twig', []);
}
}