src/Core/Ports/Http/IndexAction.php line 13
<?php
namespace App\Core\Ports\Http;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
/**
* Class IndexAction
* @package App\Core\Ports\Http
*/
final class IndexAction extends AbstractController
{
public const ROUTE_NAME = 'index';
#[Route(
path: '/',
name: self::ROUTE_NAME
)]
public function __invoke(): Response
{
return $this->redirectToRoute(
Error\SessionEndAction::ROUTE_NAME
);
}
}