src/Controller/DefaultController.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  5. class DefaultController extends AbstractController
  6. {
  7.     public function indexAction()
  8.     {
  9.         if ($this->isGranted('IS_AUTHENTICATED_FULLY'$this->getUser())) {
  10.                 return $this->render('Default/index.html.twig');
  11.         }
  12.         return $this->redirectToRoute('fos_user_security_login');
  13.     }
  14. }