@@ -8,28 +8,28 @@ |
||
8 | 8 | |
9 | 9 | class PageController extends AbstractController |
10 | 10 | { |
11 | - /** |
|
12 | - * @Route("/contents", name="ribsadmin_contents") |
|
13 | - * @return Response |
|
14 | - */ |
|
15 | - public function index(): Response |
|
16 | - { |
|
17 | - $navigation = $this->getDoctrine()->getManager()->getRepository("RibsAdminBundle:Navigation")->findAllNavigationPage(); |
|
11 | + /** |
|
12 | + * @Route("/contents", name="ribsadmin_contents") |
|
13 | + * @return Response |
|
14 | + */ |
|
15 | + public function index(): Response |
|
16 | + { |
|
17 | + $navigation = $this->getDoctrine()->getManager()->getRepository("RibsAdminBundle:Navigation")->findAllNavigationPage(); |
|
18 | 18 | |
19 | - return $this->render('@RibsAdmin/page/index.html.twig', ["navigation" => $navigation]); |
|
20 | - } |
|
19 | + return $this->render('@RibsAdmin/page/index.html.twig', ["navigation" => $navigation]); |
|
20 | + } |
|
21 | 21 | |
22 | - /** |
|
23 | - * @Route("/contents/edit-page/{page_id}", name="ribsadmin_contents_edit_page") |
|
24 | - * @param int $page_id |
|
25 | - * @return Response |
|
26 | - */ |
|
27 | - public function editPage(int $page_id): Response |
|
28 | - { |
|
29 | - $em = $this->getDoctrine()->getManager(); |
|
30 | - $navigation = $em->getRepository("RibsAdminBundle:Navigation")->findAllNavigationPage(); |
|
31 | - $page = $em->getRepository("RibsAdminBundle:Page")->find($page_id); |
|
22 | + /** |
|
23 | + * @Route("/contents/edit-page/{page_id}", name="ribsadmin_contents_edit_page") |
|
24 | + * @param int $page_id |
|
25 | + * @return Response |
|
26 | + */ |
|
27 | + public function editPage(int $page_id): Response |
|
28 | + { |
|
29 | + $em = $this->getDoctrine()->getManager(); |
|
30 | + $navigation = $em->getRepository("RibsAdminBundle:Navigation")->findAllNavigationPage(); |
|
31 | + $page = $em->getRepository("RibsAdminBundle:Page")->find($page_id); |
|
32 | 32 | |
33 | - return $this->render('@RibsAdmin/page/edit-page.html.twig', ["navigation" => $navigation, "page" => $page]); |
|
34 | - } |
|
33 | + return $this->render('@RibsAdmin/page/edit-page.html.twig', ["navigation" => $navigation, "page" => $page]); |
|
34 | + } |
|
35 | 35 | } |