public function create($uri)
    {
        list($scheme, $host, $port, $path, $query, $fragment, $user, $pass) = $this->parseUrl($uri);

        return new Uri($scheme, $host, $port, $path, $query, $fragment, $user, $pass);
    }
public function create($uri)
    {
        list($scheme, $host, $port, $path, $query, $fragment, $user, $pass) = $this->parseUrl($uri);

        return new Uri($scheme, $host, $port, $path, $query, $fragment, $user, $pass);
    }
public function create ( $ uri ) { list ( $ scheme , $ host , $ port , $ path , $ query , $ fragment , $ user , $ pass ) = $ this -> parseUrl ( $ uri ) ; return new Uri ( $ scheme , $ host , $ port , $ path , $ query , $ fragment , $ user , $ pass ) ; }
Create new Uri from provided string.

@param string $uri uri that will be parsed into URI object

@return Uri Instance of Uri based on provided string
Create new Uri from provided string .