src/Controller/ErrorController.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\HttpFoundation\Response;
  5. use Symfony\Component\Routing\Annotation\Route;
  6. class ErrorController extends AbstractController
  7. {
  8.     /**
  9.      * 404 - page not found
  10.      * @Route("/error-404", name="CError404")
  11.      */
  12.     public function notFoundAction(): Response{
  13.         return $this->render('web/404.html.twig');
  14.     }
  15.     /**
  16.      * 403 - access denied
  17.      * @Route("/error-403", name="CError403")
  18.      */
  19.     public function accessDeniedAction(): Response{
  20.         return $this->render('web/403.html.twig');
  21.     }
  22. }