Source of file DefaultController.php
Size: 0,635 Bytes - Last Modified: 2023-11-16T22:56:03+01:00
/home/websites/teicee/packagist/site/phpdoc/conf/../vendor/teicee/make-bundle/acme/src/Controller/DefaultController.php
| 12345678910111213141516171819202122232425262728 | <?phpnamespace TIC\AcmeBundle\Controller; use TIC\CoreBundle\Base\TICController as BaseController; use TIC\TwigBundle\Traits\ControllerViewable; use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; #use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;/** * #Security("has_role('ROLE_ADMIN')") */class DefaultController extends BaseController {use ControllerViewable; /** * @Route("/", name="ticacme_default_index") */public function index(Request $request): Response { return $this->renderAction('index', []); } } |