src/Controller/StaticPageController.php line 60

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', options: ['sitemap.custom' => ['section' => 'static']])]
  14.     public function about(): Response
  15.     {
  16.         return $this->render('static/about.html.twig');
  17.     }
  18.     #[Route(
  19.         '/user-agreement-for-advertisers/',
  20.         name: 'static_page.user_agreement_for_advertisers',
  21.         options: ['sitemap.custom' => ['section' => 'static']]
  22.     )]
  23.     public function userAgreementForAdvertisers(): Response
  24.     {
  25.         return $this->render('static/user_agreement_for_advertisers.html.twig');
  26.     }
  27.     #[Route(
  28.         '/user-agreement-for-clients/',
  29.         name: 'static_page.user_agreement_for_clients',
  30.         options: ['sitemap.custom' => ['section' => 'static']]
  31.     )]
  32.     public function userAgreementForClients(): Response
  33.     {
  34.         return $this->render('static/user_agreement_for_clients.html.twig');
  35.     }
  36.     #[Route(
  37.         '/personal-data-processing-policy/',
  38.         name: 'static_page.personal_data_processing_policy',
  39.         options: ['sitemap.custom' => ['section' => 'static']]
  40.     )]
  41.     public function personalDataProcessingPolicy(): Response
  42.     {
  43.         return $this->render('static/personal_data_processing_policy.html.twig');
  44.     }
  45.     #[Route('/contacts/', name: 'static_page.contacts', options: ['sitemap.custom' => ['section' => 'static']])]
  46.     public function contacts(): Response
  47.     {
  48.         return $this->render('static/contacts.html.twig');
  49.     }
  50.     #[Route(path: '/license/', name: 'static_page.license')]
  51.     public function license(): Response
  52.     {
  53.         return $this->render('static/license.html.twig');
  54.     }
  55. }