src/Controller/CustomExceptionController.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\HttpFoundation\Response;
  5. class CustomExceptionController extends AppController
  6. {
  7.     public function notFound(): Response
  8.     {
  9.         return $this->renderWithParams('Exceptions/404.html.twig', []);
  10.     }
  11. }