protected function accepts($mimetype)
    {
        if (strtolower($this->request->getContentType()) != strtolower($mimetype)) {
            throw new UnsupportedMediaTypeException('No matching method for content type "'.$this->request->getContentType().'"');
        }

        return true;
    }
protected function accepts($mimetype)
    {
        if (strtolower($this->request->getContentType()) != strtolower($mimetype)) {
            throw new UnsupportedMediaTypeException('No matching method for content type "'.$this->request->getContentType().'"');
        }

        return true;
    }
protected function accepts ( $ mimetype ) { if ( strtolower ( $ this -> request -> getContentType ( ) ) != strtolower ( $ mimetype ) ) { throw new UnsupportedMediaTypeException ( 'No matching method for content type "' . $ this -> request -> getContentType ( ) . '"' ) ; } return true ; }
Accepts condition mimetype must match request content type
@param str $mimetype
Accepts condition mimetype must match request content type