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:

  1. controlleraction saves database , returns response
  2. 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

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -