Completed
Pull Request — development (#802)
by Mirco
04:41
created

KitchensinkController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A index() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Oc\Controller\Backend;
6
7
use Oc\Entity\UserEntity;
8
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
9
use Symfony\Component\HttpFoundation\Response;
10
use Symfony\Component\Routing\Annotation\Route;
11
12
class KitchensinkController extends AbstractController
13
{
14
    /**
15
     * @Route("/kitchensink", name="kitchensink_index")
16
     */
17
    public function index(): Response
18
    {
19
        $this->denyAccessUnlessGranted('CAN_VIEW', UserEntity::class);
20
21
        return $this->render('backend/kitchensink/index.html.twig');
22
    }
23
}
24