src/Controller/StaticPageController.php line 23

Open in your IDE?
  1. <?php
  2. /**
  3.  * Created by simpson <simpsonwork@gmail.com>
  4.  * Date: 2019-04-05
  5.  * Time: 15:26
  6.  */
  7. namespace App\Controller;
  8. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  9. use Symfony\Component\HttpFoundation\Response;
  10. use Symfony\Component\Routing\Annotation\Route;
  11. class StaticPageController extends AbstractController
  12. {
  13.     #[Route("/about/"name"static_page.about")]
  14.     public function about(): Response
  15.     {
  16.         return $this->render('static/about.html.twig');
  17.     }
  18.     #[Route(path'/license/'name'static_page.license')]
  19.     public function license(): Response
  20.     {
  21.         return $this->render('static/license.html.twig');
  22.     }
  23.     #[Route(path'/articles/'name'static_page.articles')]
  24.     public function articles(): Response
  25.     {
  26.         return $this->render('static/articles.html.twig');
  27.     }
  28.     #[Route('/articles/menopause-2-0/'name'static_page.article_menopause')]
  29.     public function menopause(): Response
  30.     {
  31.         return $this->render('static/article_menopause.html.twig');
  32.     }
  33.     #[Route('/articles/polyamory-and-open-relationships/'name'static_page.article_polyamory')]
  34.     public function polyamory(): Response
  35.     {
  36.         return $this->render('static/article_polyamory.html.twig');
  37.     }
  38.     #[Route('/articles/sexuality-and-chronic-pain/'name'static_page.article_chronic_pain')]
  39.     public function chronicPain(): Response
  40.     {
  41.         return $this->render('static/article_chronic_pain.html.twig');
  42.     }
  43.     #[Route('/articles/psychedelics-in-sex-therapy/'name'static_page.article_psychedelics')]
  44.     public function psychedelics(): Response
  45.     {
  46.         return $this->render('static/article_psychedelics.html.twig');
  47.     }
  48.     #[Route('/articles/sexual-energy-and-performance/'name'static_page.article_energy')]
  49.     public function sexualEnergy(): Response
  50.     {
  51.         return $this->render('static/article_energy.html.twig');
  52.     }
  53. }