public function matchRequest(RequestInterface $request)
    {
        if (!isset($this->options['hostPattern'])) {
            throw new InvalidRequestPatternException('Missing option "hostPattern" in the Host request pattern configuration', 1446224510);
        }
        if (!$request instanceof ActionRequest) {
            return false;
        }
        $hostPattern = str_replace('\\*', '.*', preg_quote($this->options['hostPattern'], '/'));
        return preg_match('/^' . $hostPattern . '$/', $request->getHttpRequest()->getUri()->getHost()) === 1;
    }
public function matchRequest(RequestInterface $request)
    {
        if (!isset($this->options['hostPattern'])) {
            throw new InvalidRequestPatternException('Missing option "hostPattern" in the Host request pattern configuration', 1446224510);
        }
        if (!$request instanceof ActionRequest) {
            return false;
        }
        $hostPattern = str_replace('\\*', '.*', preg_quote($this->options['hostPattern'], '/'));
        return preg_match('/^' . $hostPattern . '$/', $request->getHttpRequest()->getUri()->getHost()) === 1;
    }
public function matchRequest ( RequestInterface $ request ) { if ( ! isset ( $ this -> options [ 'hostPattern' ] ) ) { throw new InvalidRequestPatternException ( 'Missing option "hostPattern" in the Host request pattern configuration' , 1446224510 ) ; } if ( ! $ request instanceof ActionRequest ) { return false ; } $ hostPattern = str_replace ( '\\*' , '.*' , preg_quote ( $ this -> options [ 'hostPattern' ] , '/' ) ) ; return preg_match ( '/^' . $ hostPattern . '$/' , $ request -> getHttpRequest ( ) -> getUri ( ) -> getHost ( ) ) === 1 ; }
Matches a \Neos\Flow\Mvc\RequestInterface against its set host 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 host pattern rules