public function matchRequest(RequestInterface $request)
    {
        if (!isset($this->options['cidrPattern'])) {
            throw new InvalidRequestPatternException('Missing option "cidrPattern" in the Ip request pattern configuration', 1446224520);
        }
        if (!$request instanceof ActionRequest) {
            return false;
        }
        return (boolean)IpUtility::cidrMatch($request->getHttpRequest()->getClientIpAddress(), $this->options['cidrPattern']);
    }
public function matchRequest(RequestInterface $request)
    {
        if (!isset($this->options['cidrPattern'])) {
            throw new InvalidRequestPatternException('Missing option "cidrPattern" in the Ip request pattern configuration', 1446224520);
        }
        if (!$request instanceof ActionRequest) {
            return false;
        }
        return (boolean)IpUtility::cidrMatch($request->getHttpRequest()->getClientIpAddress(), $this->options['cidrPattern']);
    }
public function matchRequest ( RequestInterface $ request ) { if ( ! isset ( $ this -> options [ 'cidrPattern' ] ) ) { throw new InvalidRequestPatternException ( 'Missing option "cidrPattern" in the Ip request pattern configuration' , 1446224520 ) ; } if ( ! $ request instanceof ActionRequest ) { return false ; } return ( boolean ) IpUtility :: cidrMatch ( $ request -> getHttpRequest ( ) -> getClientIpAddress ( ) , $ this -> options [ 'cidrPattern' ] ) ; }
Matches a \Neos\Flow\Mvc\RequestInterface against the set IP pattern rules

@param RequestInterface $request The request that should be matched
@return boolean true if the pattern matched, false otherwise
@throws InvalidRequestPatternException
Matches a \ Neos \ Flow \ Mvc \ RequestInterface against the set IP pattern rules