src/Controller/DefaultController.php line 25

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\HttpFoundation\Response;
  5. use Symfony\Contracts\HttpClient\Exception\{ClientExceptionInterface,
  6.     RedirectionExceptionInterface,
  7.     ServerExceptionInterface
  8. };
  9. /**
  10.  * Default Controller
  11.  */
  12. class DefaultController extends AbstractController
  13. {
  14.     /**
  15.      * @Symfony\Component\Routing\Annotation\Route("/", name="home")
  16.      *
  17.      * @return Response
  18.      * @throws ClientExceptionInterface
  19.      * @throws RedirectionExceptionInterface
  20.      * @throws ServerExceptionInterface
  21.      */
  22.     public function index(): Response
  23.     {
  24.         return $this->render('default/index.html.twig');
  25.     }
  26. }