ManagerController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 9
ccs 0
cts 3
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A index() 0 4 1
1
<?php
2
3
namespace Obblm\Core\Controller\Manager;
4
5
use Obblm\Core\Security\Roles;
6
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
7
use Symfony\Component\HttpFoundation\Response;
8
use Symfony\Component\Routing\Annotation\Route;
9
10
/**
11
 * Class ManagerController
12
 * @package Obblm\Core\Controller\Manager
13
 *
14
 * @Route("/manage")
15
 */
16
class ManagerController extends AbstractController
17
{
18
    /**
19
     * @Route("/")
20
     */
21
    public function index():Response
22
    {
23
        $this->denyAccessUnlessGranted(Roles::MANAGER);
24
        return $this->render('@ObblmCore/todo.html.twig', []);
25
    }
26
}
27