src/UriLocalizer.php
protected function pathFromParsedUrl($parsedUrl)
    {
        $path = '/' . implode('/', $parsedUrl['segments']);
        if ($parsedUrl['query']) {
            $path .= "?{$parsedUrl['query']}";
        }
        if ($parsedUrl['fragment']) {
            $path .= "#{$parsedUrl['fragment']}";
        }
        return $path;
    }
protected function pathFromParsedUrl($parsedUrl)
    {
        $path = '/' . implode('/', $parsedUrl['segments']);
        if ($parsedUrl['query']) {
            $path .= "?{$parsedUrl['query']}";
        }
        if ($parsedUrl['fragment']) {
            $path .= "#{$parsedUrl['fragment']}";
        }
        return $path;
    }
protected function pathFromParsedUrl ( $ parsedUrl ) { $ path = '/' . implode ( '/' , $ parsedUrl [ 'segments' ] ) ; if ( $ parsedUrl [ 'query' ] ) { $ path .= "?{$parsedUrl['query']}" ; } if ( $ parsedUrl [ 'fragment' ] ) { $ path .= "#{$parsedUrl['fragment']}" ; } return $ path ; }
Returns the uri for the given parsed url based on its segments, query and fragment

@return string
Returns the uri for the given parsed url based on its segments query and fragment