final class Registry

The source extensions available to a project by format.

html, xml, ietf and markdown are read as documents, json with JSONPath and text by line; configured extension classes are added under their format names and may replace these.

Methods§

public function __construct(array<string, string> $classes = [])

Parameters

$classesarray<string, string>Extension class names by format

Throws

InvalidInputException When a class does not implement SourceExtension
Calls 7

Private surface 1§

Implementation details, listed for orientation only.

private array<string, SourceExtension> $extensions

Test cases 26§

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

Dedicated tests 7
Other tests reaching this symbol 19

Relations§

Instantiated in 2
Method calls 3
Type declarations 1