registration: Let extensions add PHP version requirements
authorMGChecker <hgasuser@gmail.com>
Sat, 8 Sep 2018 00:02:53 +0000 (02:02 +0200)
committerMGChecker <hgasuser@gmail.com>
Sat, 22 Sep 2018 01:43:28 +0000 (03:43 +0200)
commit8af76decf8799f9ebb7fa45990c95bfb13e817c3
treecb6feb83d17694bd586626625564c4a5da37892e
parent7f6bd0c6fec48474f2225bd26979815c0229813d
registration: Let extensions add PHP version requirements

While MediaWiki Core already sets requirements for PHP versions, it should be
possible for extensions to tighten these requirements. This mirrors the PHP
parameter of extension infoboxes as well.

This change introduces a new 'platform' key (in addition to 'MediaWiki', 'skins'
and 'extensions', where non-MediaWiki software requirements will be listed
in the future, starting with a PHP version constraint. Further keys are
supposed to be added to allow setting constraints against php extensions
and other abilities of the platform.

Bug: T197535
Change-Id: I6744cc0be2363b603331af9dc860eb8603a1a89a
docs/extension.schema.v1.json
docs/extension.schema.v2.json
includes/registration/ExtensionDependencyError.php
includes/registration/ExtensionRegistry.php
includes/registration/VersionChecker.php
tests/phpunit/includes/registration/ExtensionProcessorTest.php
tests/phpunit/includes/registration/VersionCheckerTest.php