src/Controller/Front/PostController.php line 21

Open in your IDE?
  1. <?php
  2. namespace App\Controller\Front;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\Routing\Annotation\Route;
  5. class PostController extends AbstractController
  6. {
  7.     /**
  8.      * @Route("/news/list", name="front_post_list")
  9.      */
  10.     public function list()
  11.     {
  12.         return $this->render('front/post/list.html.twig');
  13.     }
  14.     /**
  15.      * @Route("/news/lorem-ipsum", name="front_post_single")
  16.      */
  17.     public function single()
  18.     {
  19.         return $this->render('front/post/single.html.twig');
  20.     }
  21. }