<?php
// src/Controller/ErrorController.php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class ErrorController extends AbstractController
{
/**
* @Route("/{slug<.*>}", name="not_found")
*/
public function error404(): Response
{
return $this->render('ys/404.html.twig');
}
}