I'm trying to customize error templates on my Symfony 5 project. I want to use the TwigBundle error renderer because it seems to be the lightest solution.
So I followed this doc : https://symfony.com/doc/current/controller/error_pages.html#overriding-the-default-error-templates
TwigBundle looks like correctly installed as I run this command : composer require symfony/twig-pack
without any error.
But now I can't find any error.html.twig
in any folder of the TwigBundle, especially in the TwigBundle/Exception/
folder (which doesn't even exist) as suggested in the documentation.
Maybe this is not the good "TwigBundle" I installed ? Or maybe there is a better and lighter solution to customize error pages ?