src/Controller/DefaultController.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\Routing\Annotation\Route;
  5. class DefaultController extends AbstractController
  6. {
  7. /**
  8.  * @Route("/", name="home")
  9.  */
  10.     public function indexAction()
  11.     {
  12.         if ($this->getUser()->needsSetup()) {
  13.             $response $this->render('Security/requiredUserSetup.html.twig');
  14.         } else {
  15.             $response $this->render('Clientes/index.html.twig');
  16.         }
  17.         
  18.         //1 semana
  19.         //$response->setMaxAge(604800);
  20.         return $response;
  21.     }
  22. }