Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function indexAction(Request $request, PostRepository $postRepository, Paginator $paginator) |
||
15 | { |
||
16 | $postsPagination = $paginator->paginate( |
||
17 | $postRepository->createPublicFeedPostsQuery(), |
||
18 | $request->query->getInt('page', 1), |
||
19 | self::POSTS_PER_PAGE |
||
20 | ); |
||
21 | |||
22 | return $this->render( |
||
23 | 'SkobkinPointToolsBundle:Post:feed.html.twig', |
||
24 | [ |
||
25 | // @todo Move to translation |
||
26 | 'feed_title' => 'All', |
||
27 | 'posts' => $postsPagination, |
||
28 | // Special feed mark (to not show comments and other) |
||
29 | 'is_feed' => true, |
||
30 | ] |
||
31 | ); |
||
32 | } |
||
33 | } |
||
34 |