protected function getClientHost()
    {
        if ($this->requestStack->getCurrentRequest() === null) {
            throw new \RuntimeException(sprintf('%s can not be called outside of request cycle', __METHOD__));
        }

        return $this->requestStack->getCurrentRequest()->getHost();
    }
protected function getClientHost()
    {
        if ($this->requestStack->getCurrentRequest() === null) {
            throw new \RuntimeException(sprintf('%s can not be called outside of request cycle', __METHOD__));
        }

        return $this->requestStack->getCurrentRequest()->getHost();
    }
protected function getClientHost ( ) { if ( $ this -> requestStack -> getCurrentRequest ( ) === null ) { throw new \ RuntimeException ( sprintf ( '%s can not be called outside of request cycle' , __METHOD__ ) ) ; } return $ this -> requestStack -> getCurrentRequest ( ) -> getHost ( ) ; }
Return the user's host name.

@return string
Return the user s host name .