src/Controller/StaticPagesController.php line 22

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 StaticPagesController extends AbstractController
  8. {
  9.     private $logger;
  10.     public function __construct(
  11.         LoggerInterface $logger
  12.     ) {
  13.         $this->logger $logger;
  14.     }
  15.     #[Route('/quienes-somos'name'app_about_us'methods: ["GET"])]
  16.     public function aboutUs(): Response
  17.     {
  18.         $this->logger->debug(__METHOD__);
  19.         return $this->render('static-pages/about_us.html.twig', []);
  20.     }
  21.     #[Route('/faq'name'app_faq'methods: ["GET"])]
  22.     public function faq(): Response
  23.     {
  24.         $this->logger->debug(__METHOD__);
  25.         return $this->render('static-pages/faq.html.twig', []);
  26.     }
  27. }