For Symfony 2.1, your twig error templates cannot use is_granted in your templates. If you do, an error will be thrown. Because Symfony handles 404 errors differently in production and dev, you will probably see this error after you push your code to production.
You have two choices:
- get rid of all the is_granted or similar functions
- do a check for "app.user is not null"
No comments:
Post a Comment