public function negotiateResponseLanguage(Request $req)
    {
        return $this->getLanguageNegotiator()->getBest($req->headers->get('Accept-Language'), $this->langPriorities)->getValue();
    }
public function negotiateResponseLanguage(Request $req)
    {
        return $this->getLanguageNegotiator()->getBest($req->headers->get('Accept-Language'), $this->langPriorities)->getValue();
    }
public function negotiateResponseLanguage ( Request $ req ) { return $ this -> getLanguageNegotiator ( ) -> getBest ( $ req -> headers -> get ( 'Accept-Language' ) , $ this -> langPriorities ) -> getValue ( ) ; }
Return preferred language, derived from Requests Accept-Language header, and configured priorities.

@param  Request $req
@return string
Return preferred language derived from Requests Accept - Language header and configured priorities .