MediaWiki master
|
Validate extension.json files against their JSON schema. More...
Public Member Functions | |
__construct (callable $missingDepCallback) | |
checkDependencies () | |
validate ( $path) | |
Validate extension.json files against their JSON schema.
This is used for static validation from the command-line via validateRegistrationFile.php, and the PHPUnit structure test suite (ExtensionJsonValidationTest).
The files are normally read by the ExtensionRegistry and ExtensionProcessor classes.
Definition at line 41 of file ExtensionJsonValidator.php.
MediaWiki\Registration\ExtensionJsonValidator::__construct | ( | callable | $missingDepCallback | ) |
callable | $missingDepCallback |
Definition at line 51 of file ExtensionJsonValidator.php.
MediaWiki\Registration\ExtensionJsonValidator::checkDependencies | ( | ) |
Definition at line 59 of file ExtensionJsonValidator.php.
Referenced by ValidateRegistrationFile\execute().
MediaWiki\Registration\ExtensionJsonValidator::validate | ( | $path | ) |
string | $path | file to validate |
ExtensionJsonValidationError | on any failure |
Definition at line 91 of file ExtensionJsonValidator.php.
References $path, MediaWiki\Registration\ExtensionRegistry\MANIFEST_VERSION, and MediaWiki\Registration\ExtensionRegistry\OLDEST_MANIFEST_VERSION.