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

KitchensinkController::index()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
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