MediaWiki master
|
Check whether extensions and their dependencies meet certain version requirements. More...
Public Member Functions | |
__construct ( $coreVersion, $phpVersion, array $phpExtensions, array $abilities=[], array $abilityErrors=[]) | |
checkArray (array $extDependencies) | |
Check all given dependencies if they are compatible with the named installed extensions in the $credits array. | |
setLoadedExtensionsAndSkins (array $credits) | |
Set an array with credits of all loaded extensions and skins. | |
Check whether extensions and their dependencies meet certain version requirements.
Definition at line 35 of file VersionChecker.php.
MediaWiki\Registration\VersionChecker::__construct | ( | $coreVersion, | |
$phpVersion, | |||
array | $phpExtensions, | ||
array | $abilities = [], | ||
array | $abilityErrors = [] ) |
string | $coreVersion | Current version of core |
string | $phpVersion | Current PHP version |
string[] | $phpExtensions | List of installed PHP extensions |
bool[] | $abilities | List of provided abilities |
string[] | $abilityErrors | Error messages for the abilities |
Definition at line 78 of file VersionChecker.php.
MediaWiki\Registration\VersionChecker::checkArray | ( | array | $extDependencies | ) |
Check all given dependencies if they are compatible with the named installed extensions in the $credits array.
Example $extDependencies: { 'FooBar' => { 'MediaWiki' => '>= 1.25.0', 'platform': { 'php': '>= 7.0.0', 'ext-foo': '*', 'ability-bar': true }, 'extensions' => { 'FooBaz' => '>= 1.25.0' }, 'skins' => { 'BazBar' => '>= 1.0.0' } } }
array | $extDependencies | All extensions that depend on other ones |
Definition at line 160 of file VersionChecker.php.
References MediaWiki\Registration\ExtensionRegistry\MEDIAWIKI_CORE.
MediaWiki\Registration\VersionChecker::setLoadedExtensionsAndSkins | ( | array | $credits | ) |
Set an array with credits of all loaded extensions and skins.
array | $credits | An array of installed extensions with credits of them |
Definition at line 97 of file VersionChecker.php.