src/PHPDish/Bundle/PostBundle/Controller/PostController.php
public function indexAction(Request $request)
    {
        $posts = $this->getPostManager()->findLatestEnabledPosts($request->query->getInt('page', 1));

        return $this->render($this->configuration->getTemplate('Post:index.html.twig'), [
            'posts' => $posts,
        ]);
    }
public function indexAction(Request $request)
    {
        $posts = $this->getPostManager()->findLatestEnabledPosts($request->query->getInt('page', 1));

        return $this->render($this->configuration->getTemplate('Post:index.html.twig'), [
            'posts' => $posts,
        ]);
    }
@Route("/posts", name="post")

@param Request $request

@return Response