final class UrlResolver

Methods

static string
expand(string $url, array $parameters)

Substitute the URL parameters in the given URL.

static UriInterface
resolve(string $baseUrl, string $endpoint, bool $allowBaseUrlOverride)

Resolve the connector base URL and request endpoint.

static UriInterface
withQuery(UriInterface $uri, array $parameters)

Merge repository values into the URI query.

Details

at line 19
static string expand(string $url, array $parameters)

Substitute the URL parameters in the given URL.

Parameters

string $url
array $parameters

Return Value

string

at line 31
static UriInterface resolve(string $baseUrl, string $endpoint, bool $allowBaseUrlOverride)

Resolve the connector base URL and request endpoint.

Parameters

string $baseUrl
string $endpoint
bool $allowBaseUrlOverride

Return Value

UriInterface

at line 83
static UriInterface withQuery(UriInterface $uri, array $parameters)

Merge repository values into the URI query.

Parameters

UriInterface $uri
array $parameters

Return Value

UriInterface