src/Controller/ErrorController.php line 15

Open in your IDE?
  1. <?php
  2. // src/Controller/ErrorController.php
  3. namespace App\Controller;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. class ErrorController extends AbstractController
  8. {
  9.     /**
  10.      * @Route("/{slug<.*>}", name="not_found")
  11.      */
  12.     public function error404(): Response
  13.     {
  14.         return $this->render('ys/404.html.twig');
  15.     }
  16. }