public function matchRequest(RequestInterface $request)
    {
        if (!$request instanceof ActionRequest) {
            return false;
        }
        if (!isset($this->options['uriPattern'])) {
            throw new InvalidRequestPatternException('Missing option "uriPattern" in the Uri request pattern configuration', 1446224530);
        }
        return (boolean)preg_match('/^' . str_replace('/', '\/', $this->options['uriPattern']) . '$/', $request->getHttpRequest()->getUri()->getPath());
    }
public function matchRequest(RequestInterface $request)
    {
        if (!$request instanceof ActionRequest) {
            return false;
        }
        if (!isset($this->options['uriPattern'])) {
            throw new InvalidRequestPatternException('Missing option "uriPattern" in the Uri request pattern configuration', 1446224530);
        }
        return (boolean)preg_match('/^' . str_replace('/', '\/', $this->options['uriPattern']) . '$/', $request->getHttpRequest()->getUri()->getPath());
    }
public function matchRequest ( RequestInterface $ request ) { if ( ! $ request instanceof ActionRequest ) { return false ; } if ( ! isset ( $ this -> options [ 'uriPattern' ] ) ) { throw new InvalidRequestPatternException ( 'Missing option "uriPattern" in the Uri request pattern configuration' , 1446224530 ) ; } return ( boolean ) preg_match ( '/^' . str_replace ( '/' , '\/' , $ this -> options [ 'uriPattern' ] ) . '$/' , $ request -> getHttpRequest ( ) -> getUri ( ) -> getPath ( ) ) ; }
Matches a \Neos\Flow\Mvc\RequestInterface against its set URL 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 its set URL pattern rules