# Класс HttpSoft\Message\UriFactory

Фабрика для создания HttpSoft\Message\Uri, реализует Psr\Http\Message\UriFactoryInterface.

Исходный код на GitHub.

use HttpSoft\Message\UriFactory;

$uriFactory = new UriFactory();
$uri = $uriFactory->createUri('https://example.com');

$uri->getScheme(); // 'https'
$uri->getHost(); // 'example.com'
(string) $uri; // 'https://example.com'

# Публичные методы

See the original detailed description of the methods in the Psr\Http\Message\UriFactoryInterface.

# createUri

Создает новый экземпляр HttpSoft\Message\Uri

public function createUri(string $uri = ''): Uri;