1: <?php
2: namespace TIC\DemoBundle\Controller;
3:
4: use TIC\CoreBundle\Base\TICController as BaseController;
5: use TIC\TwigBundle\Traits\ControllerViewable;
6:
7: use Symfony\Component\Routing\Annotation\Route;
8: use Symfony\Component\HttpFoundation\Request;
9: use Symfony\Component\HttpFoundation\Response;
10: #use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
11:
12: /**
13: * #Security("has_role('ROLE_ADMIN')")
14: */
15: class DefaultController extends BaseController
16: {
17: use ControllerViewable;
18:
19: /**
20: * @Route("/", name="ticdemo_default_index")
21: */
22: public function index(Request $request): Response
23: {
24: return $this->renderAction('index', []);
25: }
26:
27: }
28: