src/Controller/ErrorController.php line 22

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\Routing\Annotation\Route;
  5. class ErrorController extends AbstractController
  6. {
  7.     /**
  8.      * @Route("/error", name="error")
  9.      */
  10.     public function showError()
  11.     {
  12.         
  13.         return $this->render('errors/erroraccess.html.twig');
  14.     }
  15.     /**
  16.      * @Route("/error/403", name="error403")
  17.      */
  18.     public function accessDenied()
  19.     {
  20.         return $this->render('errors/access_denied.html.twig');
  21.     }
  22. }