MediaWiki REL1_39
|
Provides functions to check a set of extensions with dependencies against a set of loaded extensions and given version information. 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. | |
Provides functions to check a set of extensions with dependencies against a set of loaded extensions and given version information.
Definition at line 32 of file VersionChecker.php.
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 75 of file VersionChecker.php.
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 154 of file VersionChecker.php.
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 93 of file VersionChecker.php.