src/Controller/DefaultController.php line 21

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Component\Routing\Annotation\Route;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
  7. use Symfony\Component\HttpFoundation\JsonResponse;
  8. use Symfony\Component\HttpFoundation\Request;
  9. use Symfony\Component\HttpFoundation\RedirectResponse;
  10. class DefaultController extends AbstractController
  11. {
  12.     /**
  13.      * @Route("/", name="home")
  14.     */
  15.     public function homeAction(Request $requestAuthenticationUtils $authUtils)
  16.     {
  17.         return $this->render('home.html');
  18.     }
  19. }