예제 #1
0
 /**
  * Attempt to match the accept criteria
  *
  * If it matches, but on "*\/*", return false.
  *
  * Otherwise, return based on whether or not one or more criteria match.
  *
  * @param  AcceptHeader $accept
  * @return bool
  */
 protected function matchAcceptCriteria(AcceptHeader $accept)
 {
     foreach ($this->acceptFilters as $type) {
         $match = $accept->match($type);
         if ($match && $match->getTypeString() != '*/*') {
             return true;
         }
     }
     return false;
 }