public function negotiateRequestFormat(Request $req)
    {
        $header = $req->headers->get('Content-Type');

        $exp = explode(';', $header);
        $type = $exp[0];

        return isset($this->inputFormatMap[$type]) ? $this->inputFormatMap[$type] : false;
    }
public function negotiateRequestFormat(Request $req)
    {
        $header = $req->headers->get('Content-Type');

        $exp = explode(';', $header);
        $type = $exp[0];

        return isset($this->inputFormatMap[$type]) ? $this->inputFormatMap[$type] : false;
    }
public function negotiateRequestFormat ( Request $ req ) { $ header = $ req -> headers -> get ( 'Content-Type' ) ; $ exp = explode ( ';' , $ header ) ; $ type = $ exp [ 0 ] ; return isset ( $ this -> inputFormatMap [ $ type ] ) ? $ this -> inputFormatMap [ $ type ] : false ; }
Return the incoming format, derived from the Requests content-type header.  Generally this is used for determing which
format to use during deserialization.

@param  Request $req
@return string
Return the incoming format derived from the Requests content - type header . Generally this is used for determing which format to use during deserialization .