protected function matchPath($path)
    {
        if (!preg_match_all($this->regex, $path, $matches, \PREG_SET_ORDER)) {
            return false;
        }

        foreach ($matches[0] as $k => $v) {
            if (is_numeric($k)) {
                continue;
            }

            $this->arguments[$k] = $v;
        }

        return true;
    }
protected function matchPath($path)
    {
        if (!preg_match_all($this->regex, $path, $matches, \PREG_SET_ORDER)) {
            return false;
        }

        foreach ($matches[0] as $k => $v) {
            if (is_numeric($k)) {
                continue;
            }

            $this->arguments[$k] = $v;
        }

        return true;
    }
protected function matchPath ( $ path ) { if ( ! preg_match_all ( $ this -> regex , $ path , $ matches , \ PREG_SET_ORDER ) ) { return false ; } foreach ( $ matches [ 0 ] as $ k => $ v ) { if ( is_numeric ( $ k ) ) { continue ; } $ this -> arguments [ $ k ] = $ v ; } return true ; }
Returns true if request matches pattern

@param string $path

@return bool
Returns true if request matches pattern