Passed
Push — master ( 83de64...44197b )
by Anthony
02:43
created

PageController::indexAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace PiouPiou\RibsAdminBundle\Controller;
4
5
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
6
use Symfony\Component\Routing\Annotation\Route;
7
use Symfony\Component\HttpFoundation\Response;
8
9
class PageController extends AbstractController
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();
18
19
        return $this->render('@RibsAdmin/page/index.html.twig', ["navigation" => $navigation]);
20
    }
21
}
22