public function negotiateResponseFormat(Request $req)
    {
        return $this->getFormatNegotiator()->getBestFormat($req->headers->get('Accept'), $this->formatPriorities);
    }
public function negotiateResponseFormat(Request $req)
    {
        return $this->getFormatNegotiator()->getBestFormat($req->headers->get('Accept'), $this->formatPriorities);
    }
public function negotiateResponseFormat ( Request $ req ) { return $ this -> getFormatNegotiator ( ) -> getBestFormat ( $ req -> headers -> get ( 'Accept' ) , $ this -> formatPriorities ) ; }
Return the response format type, derived from a Request's Accept header, and configured priorities.

@param  Request $req
@return string
Return the response format type derived from a Request s Accept header and configured priorities .