Example #1
0
 public function getBestAccept()
 {
     $accept = parent::getBestAccept();
     if ($accept == '*/*') {
         $accept = '';
     }
     if (strpos($accept, ';') !== false) {
         $tmp = explode(';', $accept);
         $accept = $tmp[0];
         $this->producesCharset = $this->parseCharset($tmp[1]);
     }
     if (empty($accept)) {
         $accept = $this->getDI()->get('apibird')->getDefaultProduces();
     }
     return $accept;
 }
Example #2
0
 public function getBestAccept()
 {
     return parent::getBestAccept();
 }