/** * @param ImageAdapter|string $content * @return \Phalcon\Http\ResponseInterface|void */ public function setContent($content) { if ($content instanceof ImageAdapter) { $this->setContentType($content->getMime()); $content = $content->render(); } parent::setContent($content); }
/** * @param string|Template $content * @return \Phalcon\Http\ResponseInterface|void */ public function setContent($content) { $this->setContentType('application/xml'); parent::setContent($content); }
/** * @param string|Template $content * @return \Phalcon\Http\ResponseInterface|void */ public function setContent($content) { $this->setContentType('application/javascript'); parent::setContent($content); }
/** * @param string|Template $content * @return \Phalcon\Http\ResponseInterface|void */ public function setContent($content) { $this->setContentType('text/css'); parent::setContent($content); }