示例#1
0
文件: Image.php 项目: dubhunter/talon
 /**
  * @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);
 }
示例#2
0
文件: Twiml.php 项目: dubhunter/talon
 /**
  * @param string|Template $content
  * @return \Phalcon\Http\ResponseInterface|void
  */
 public function setContent($content)
 {
     $this->setContentType('application/xml');
     parent::setContent($content);
 }
示例#3
0
文件: Js.php 项目: dubhunter/talon
 /**
  * @param string|Template $content
  * @return \Phalcon\Http\ResponseInterface|void
  */
 public function setContent($content)
 {
     $this->setContentType('application/javascript');
     parent::setContent($content);
 }
示例#4
0
文件: Css.php 项目: dubhunter/talon
 /**
  * @param string|Template $content
  * @return \Phalcon\Http\ResponseInterface|void
  */
 public function setContent($content)
 {
     $this->setContentType('text/css');
     parent::setContent($content);
 }