Passed
Push — master ( 3519d2...fb2019 )
by Anthony
02:42
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
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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