src/Controller/StaticPageController.php line 25

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" => ["priority" => 0.2]])]
  14.     public function about(): Response
  15.     {
  16.         return $this->render('static/about.html.twig');
  17.     }
  18.     #[Route(path'/license/'name'static_page.license'options: ['sitemap' => ['priority' => '0.2']])]
  19.     public function license(): Response
  20.     {
  21.         return $this->render('static/license.html.twig');
  22.     }
  23. }