is there is some way to redirect to login page with message using symfony 2 access_control?
I need current role but only one exception in sub route. I want to create some session bag message without entering in controller.
Is that is possible?
access_control:
- { path: /user/submission, role: [ROLE_USER_WITH_MESSAGE]}
- { path: ^/user, role: [ROLE_USER] }
I asking this in reason to show message to user if he try to goes on certain route