private function getFromHttpAcceptedLanguagesServer()
    {
        $httpAcceptLanguage = $this->request->server('HTTP_ACCEPT_LANGUAGE');

        // @codeCoverageIgnoreStart
        if ( ! class_exists('Locale') || empty($httpAcceptLanguage))
            return null;
        // @codeCoverageIgnoreEnd

        $locale = Locale::acceptFromHttp($httpAcceptLanguage);

        if ($this->isSupported($locale)) return $locale;

        return null;
    }
private function getFromHttpAcceptedLanguagesServer()
    {
        $httpAcceptLanguage = $this->request->server('HTTP_ACCEPT_LANGUAGE');

        // @codeCoverageIgnoreStart
        if ( ! class_exists('Locale') || empty($httpAcceptLanguage))
            return null;
        // @codeCoverageIgnoreEnd

        $locale = Locale::acceptFromHttp($httpAcceptLanguage);

        if ($this->isSupported($locale)) return $locale;

        return null;
    }
private function getFromHttpAcceptedLanguagesServer ( ) { $ httpAcceptLanguage = $ this -> request -> server ( 'HTTP_ACCEPT_LANGUAGE' ) ; // @codeCoverageIgnoreStart if ( ! class_exists ( 'Locale' ) || empty ( $ httpAcceptLanguage ) ) return null ; // @codeCoverageIgnoreEnd $ locale = Locale :: acceptFromHttp ( $ httpAcceptLanguage ) ; if ( $ this -> isSupported ( $ locale ) ) return $ locale ; return null ; }
Get locale from http accepted languages server.

@return null|string
Get locale from http accepted languages server .