src/Core/Ports/Http/IndexAction.php line 13

  1. <?php
  2.     
  3.     namespace App\Core\Ports\Http;
  4.     
  5.     use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  6.     use Symfony\Component\HttpFoundation\Response;
  7.     use Symfony\Component\Routing\Annotation\Route;
  8.     
  9.     /**
  10.      * Class IndexAction
  11.      * @package App\Core\Ports\Http
  12.      */
  13.     final class IndexAction extends AbstractController
  14.     {
  15.         
  16.         public const ROUTE_NAME 'index';
  17.         
  18.         #[Route(
  19.             path'/',
  20.             nameself::ROUTE_NAME
  21.         )]
  22.         public function __invoke(): Response
  23.         {
  24.             return $this->redirectToRoute(
  25.                 Error\SessionEndAction::ROUTE_NAME
  26.             );
  27.         }
  28.     }