I have setup custom error pages to display for certain HTTP errors in the folder:
app/Resources/TwigBundle/views/Exception/
The 403 page (<
You can't use the is_granted
in a 404 page since 2.1:
It's mentioned in the upgrade file
The Firewall listener is now registered after the Router listener. This means that specific Firewall URLs (like /login_check and /logout) must now have proper routes defined in your routing configuration. Also, if you have a custom 404 error page, make sure that you do not use any security related features such as
is_granted
on it.
See: https://github.com/symfony/symfony/blob/master/UPGRADE-2.1.md#security