I would like execute code before all actions in my project (to calculate an important global variable). How to set a pre-action function in my controllers ?
There's no pre-action method in Symfony2. You have to use event listeners for that purpose.
2.1m questions
2.1m answers
60 comments
57.0k users