Improved action filter and action execution flow by supporting installing action filters at controller, module and application levels

This commit is contained in:
Qiang Xue
2014-04-04 23:30:59 -04:00
parent 104c4fc3ae
commit 50e338127d
11 changed files with 434 additions and 130 deletions

View File

@ -49,16 +49,6 @@ abstract class Application extends Module
* @event Event an event raised after the application successfully handles a request (before the response is sent out).
*/
const EVENT_AFTER_REQUEST = 'afterRequest';
/**
* @event ActionEvent an event raised before executing a controller action.
* You may set [[ActionEvent::isValid]] to be false to cancel the action execution.
*/
const EVENT_BEFORE_ACTION = 'beforeAction';
/**
* @event ActionEvent an event raised after executing a controller action.
*/
const EVENT_AFTER_ACTION = 'afterAction';
/**
* Application state used by [[state]]: application just started.
*/