public function create(RoutePath $path, array $attributes = []): string
    {
        $uri = new PathUri($path, $attributes);

        return (string)$uri;
    }
public function create(RoutePath $path, array $attributes = []): string
    {
        $uri = new PathUri($path, $attributes);

        return (string)$uri;
    }
public function create ( RoutePath $ path , array $ attributes = [ ] ) : string { $ uri = new PathUri ( $ path , $ attributes ) ; return ( string ) $ uri ; }
Creates new path URI.

@param RoutePath $path
@param array $attributes
@return string
@throws InvalidAttribute
Creates new path URI .