@@ 35-44 (lines=10) @@ | ||
32 | * |
|
33 | * @return Response |
|
34 | */ |
|
35 | public function roleAction(Request $request, $page = 1) |
|
36 | { |
|
37 | $em = $this->getDoctrine()->getManager(); |
|
38 | $articles = $em->getRepository("AppBundle:Article") |
|
39 | ->getArticlesWithCountComment($page); |
|
40 | ||
41 | return [ |
|
42 | 'articles' => $articles, |
|
43 | ]; |
|
44 | } |
|
45 | ||
46 | /** |
|
47 | * @param $id |
@@ 36-45 (lines=10) @@ | ||
33 | * |
|
34 | * @return Response |
|
35 | */ |
|
36 | public function indexAction($page = 1) |
|
37 | { |
|
38 | $em = $this->getDoctrine()->getManager(); |
|
39 | $articles = $em->getRepository("AppBundle:Article") |
|
40 | ->getArticlesWithCountComment($page); |
|
41 | ||
42 | return [ |
|
43 | 'articles' => $articles, |
|
44 | ]; |
|
45 | } |
|
46 | ||
47 | /** |
|
48 | * @param $slug |