final class ResourceLocation

Resolves where a source document is read from.

Methods§

public function resolve(string $uri, string $directory): string

Resolves a URI or path against the configuration directory.

Parameters

$uristringAn HTTP(S) URL, an absolute path or a path relative to the directory
$directorystringThe configuration directory

Returns

string The URL or the absolute path

Throws

RuntimeException When the URI uses a scheme other than HTTP(S)
Test cases 2
Called from 1
Calls 3

Test cases 16§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 2
Other tests reaching this symbol 14

Relations§

Instantiated in 1
Method calls 1