I want to write a common code in my symfony2 application that should be executed before calling any action-method. How Can I do it?
At the time of login-success, I am storing some data in session. If the user visit the application later with remember-me functionality. I want to restore the session data. The common code is to restore the session data.
The method to setup before and after Filters are available in the documentation. Please
see the link http://symfony.com/doc/2.0/cookbook/event_dispatcher/before_after_filters.html