58 private $stage = null;
59 private $request = null;
60 private $response = null;
61 private $controller = null;
71 $this->stage = $stage;
72 $this->request = $request;
73 $this->response = $response;
74 $this->controller = $controller;
90 return $this->request;
98 return $this->response;
106 return $this->controller;
getResponse()
Get the response.
Response holds the response values that are used as output from Controller instances.
Request holds the request values that are used as input to Controller instances.
const AFTER_EXECUTE_CONTROLLER
A AFTER_EXECUTE_CONTROLLER event occurs after the current controller is executed.
getStage()
Get the stage at which the event occurred.
getRequest()
Get the request.
const BEFORE_ROUTE_ACTION
A BEFORE_ROUTE_ACTION event occurs before the request is mapped to an action key.
Event is the base class for all events.
const BEFORE_INITIALIZE_CONTROLLER
A BEFORE_INITIALIZE_CONTROLLER event occurs before the current controller is initialized.
getController()
Get the controller.
__construct($stage, Request $request, Response $response=null, Controller $controller=null)
Constructor.
ApplicationEvent instances are fired at different stages of the program flow.
const BEFORE_EXECUTE_CONTROLLER
A BEFORE_EXECUTE_CONTROLLER event occurs after the current controller is initialized and before it is...
Controller is the base class of all controllers.
Presentation related interfaces and classes.