php - Symfony controller action execution before listener -
is possible have controller action executed before listener?
i need trigger database change on action call before listener checks if change exists. can set or possible in symfony 2/3?
the structure of actions should this:
- controlleraction saves database , returns response
- listener checks against database , execute or redirect based on end result db
now listener having priority , don't know if possible changed.
check kernel.response
event , modify response
if needed. http://symfony.com/doc/current/components/http_kernel/introduction.html#the-kernel-response-event
Comments
Post a Comment