I'm trying to catch the 404 error and redirect it to custom controller, so I could get some data from database. I find this article https://symfony.com/doc/4.4/controller/error_pages.html
and overide custom 404 page by creating structure templates/bundles/TwigBundle/Exception/error404.html.twig
but in that case it is imposible to load data from database to 404 page. Is it possible to do what I'm asking???