<?phpnamespace App\Controller;use Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted;use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;use Symfony\Component\HttpFoundation\Response;use Symfony\Component\Routing\Annotation\Route;/** * Class IndexController. */class IndexController extends AbstractController{ /** * @Route("/", name="home") * * @IsGranted("ROLE_SUPER_ADMIN") */ public function index() { return new Response('Access Denied'); }}