Bolt\AccessControl\AccessChecker::getClientHost PHP Method

getClientHost() protected method

Return the user's host name.
protected getClientHost ( ) : string
return string
    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();
    }