src/Matcher.php
protected function parsePath($path)
    {
        $path = parse_url(substr(strstr(";" . $path, ";" . $this->basepath), strlen(";" . $this->basepath)), PHP_URL_PATH);

        if ($path === false) {
            throw new Exception("Seriously malformed URL passed to route matcher.");
        }

        return $path;
    }
protected function parsePath($path)
    {
        $path = parse_url(substr(strstr(";" . $path, ";" . $this->basepath), strlen(";" . $this->basepath)), PHP_URL_PATH);

        if ($path === false) {
            throw new Exception("Seriously malformed URL passed to route matcher.");
        }

        return $path;
    }
protected function parsePath ( $ path ) { $ path = parse_url ( substr ( strstr ( ";" . $ path , ";" . $ this -> basepath ) , strlen ( ";" . $ this -> basepath ) ) , PHP_URL_PATH ) ; if ( $ path === false ) { throw new Exception ( "Seriously malformed URL passed to route matcher." ) ; } return $ path ; }
Get only the path of a given url.

@param string $path The given URL

@throws Exception
@return string
Get only the path of a given url .