src/Controller/ErrorController.php line 20

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. return $this->render('errors/erroraccess.html.twig');
  13. }
  14. /**
  15. * @Route("/error/403", name="error403")
  16. */
  17. public function accessDenied()
  18. {
  19. return $this->render('errors/access_denied.html.twig');
  20. }
  21. }