for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Obblm\Core\Controller\Admin;
use Obblm\Core\Security\Roles;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
/**
* Class AdminController
* @package Obblm\Core\Controller\Admin
*
* @Route("/admin")
*/
class AdminController extends AbstractController
{
* @Route("/", name="admin")
public function index():Response
$this->denyAccessUnlessGranted(Roles::ADMIN);
return $this->render('@ObblmCore/admin/index.html.twig', []);
}