Passed
Push — master ( 3519d2...fb2019 )
by Anthony
02:42
created

PageController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A indexAction() 0 5 1
1
<?php
2
3
namespace Ribs\RibsAdminBundle\Controller;
4
5
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
6
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
7
use Symfony\Component\HttpFoundation\Response;
8
9
class PageController extends Controller
10
{
11
	/**
12
	 * @Route("/contents", name="ribsadmin_contents")
13
	 */
14
	public function indexAction(): Response
15
	{
16
		$navigation = $this->getDoctrine()->getManager()->getRepository("RibsAdminBundle:Navigation")->findAllNavigationPage();
17
		
18
		return $this->render('@RibsAdmin/page/index.html.twig', ["navigation" => $navigation]);
19
	}
20
}
21