예제 #1
0
파일: JsonResponse.php 프로젝트: borbyu/wrr
 /**
  * @return $this
  * @throws \Exception
  */
 public function deliverPayLoad()
 {
     $this->addHeader('Content-Type: application/json');
     if ($this->json) {
         $this->addBodyFragment($this->json);
     } else {
         throw new \Exception("No JSON", 500);
     }
     return parent::deliverPayLoad();
 }