<?phpnamespace App\Controller\Front;use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;use Symfony\Component\HttpFoundation\Response;use Symfony\Component\Routing\Annotation\Route;class MainController extends AbstractController{ #[Route('/', name: 'app_main')] public function index(): Response { if($this->isGranted('ROLE_SUPER_ADMIN')){ return $this->redirectToRoute('app_admin_dashboard'); } return $this->render('front/main/index.html.twig'); }}