src/Controller/PoliciesController.php line 37

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Psr\Log\LoggerInterface;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. class PoliciesController extends AbstractController
  8. {
  9.     private $logger;
  10.     public function __construct(
  11.         LoggerInterface $logger
  12.     ) {
  13.         $this->logger $logger;
  14.     }
  15.     #[Route('/politica-privacidad'name'app_privacy_policy'methods: ["GET"])]
  16.     public function privacyPolicy(): Response
  17.     {
  18.         $this->logger->debug(__METHOD__);
  19.         return $this->render('policies/privacy_policy.html.twig', []);
  20.     }
  21.     #[Route('/aviso-legal'name'app_legal_notice'methods: ["GET"])]
  22.     public function legalNotice(): Response
  23.     {
  24.         $this->logger->debug(__METHOD__);
  25.         return $this->render('policies/legal_notice.html.twig', []);
  26.     }
  27.     #[Route('/terminos-uso'name'app_terms_of_use'methods: ["GET"])]
  28.     public function termsOfUse(): Response
  29.     {
  30.         $this->logger->debug(__METHOD__);
  31.         return $this->render('policies/terms_of_use.html.twig', []);
  32.     }
  33.     #[Route('/politica-cookies'name'app_cookie_policy'methods: ["GET"])]
  34.     public function cookiePolicy(): Response
  35.     {
  36.         $this->logger->debug(__METHOD__);
  37.         return $this->render('policies/cookie_policy.html.twig', []);
  38.     }
  39. }