classResourceLocation
final class ResourceLocation
Resolves where a source document is read from.
Methods§
public function resolve(string $uri, string $directory): stringResolves a URI or path against the configuration directory.
Parameters
$uri | string | An HTTP(S) URL, an absolute path or a path relative to the directory |
$directory | string | The configuration directory |
Returns
string The URL or the absolute pathThrows
RuntimeException When the URI uses a scheme other than HTTP(S)Test cases 2
Called from 1
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
MarkdownDocumentTestcallsApplicationTestcallsCommandHandlerTestcallsExecutorTestcallsAnalyzerTestcallsCoverageTestcallsEvidenceMatcherTestcallsSnapshotTestcallsDomSourceTestcallsJsonSourceTestcallsRegistryTestcallsResourceLoaderTestcallsSourceExtensionTestcallsTextSourceTestcalls