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

PageController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 11
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A index() 0 5 1
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