/** * prepareResponse * * @param Response $response * @access public * @return void */ public function prepareResponse(Response $response) { $response->setStatusCode(200)->setHeader('Cache-Control', 'no-cache')->setContentType('application/json'); }
/** * prepareResponse * * @param Response $response * @access public * @return void */ public function prepareResponse(Response $response) { $response->setContentType($this->getParam(1, 'text/html')); }
/** * prepareResponse * * @param Response $response * @access public * @return void */ public function prepareResponse(Response $response) { $response->setStatusCode(404); }
/** * prepareResponse * * @param Response $response * @access public * @return void */ public function prepareResponse(Response $response) { $response->setStatusCode($this->getParam(1, false) ? 301 : 302)->setHeader('Location', $this->getParam(0)); }
/** * prepareResponse * * @param Response $response * @access public * @return void */ public function prepareResponse(Response $response) { $response->setStatusCode(200)->setHeader('Cache-Control', 'no-cache')->setContentType('text/javascript'); }
/** * handle * * @param string $method */ public final function handle($method) { $this->_event->invoke($method); $this->response->setResult($this->_event->getResult()); }