<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class DefaultController extends AbstractController
{
public function indexAction()
{
if ($this->isGranted('IS_AUTHENTICATED_FULLY', $this->getUser())) {
return $this->render('Default/index.html.twig');
}
return $this->redirectToRoute('fos_user_security_login');
}
}