X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fregistration%2FProcessor.php;h=e5669d2779bcdc1fc3f43bcee1874f5ab179b68e;hb=e9a09648dceb8ed37e90a85ffd7230358878b638;hp=391f1085b6de53f521d8b25f9eaa5e7a5daf8b60;hpb=d864012f338917db791c234675ab7a5b427ade98;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/registration/Processor.php b/includes/registration/Processor.php index 391f1085b6..e5669d2779 100644 --- a/includes/registration/Processor.php +++ b/includes/registration/Processor.php @@ -16,9 +16,10 @@ interface Processor { * * @param string $path Absolute path of JSON file * @param array $info + * @param int $version manifest_version for info * @return array "credits" information to store */ - public function extractInfo( $path, array $info ); + public function extractInfo( $path, array $info, $version ); /** * @return array With following keys: @@ -29,4 +30,14 @@ interface Processor { * 'attributes' - registration info which isn't a global variable */ public function getExtractedInfo(); + + /** + * Get the requirements for the provided info + * + * @since 1.26 + * @param array $info + * @return array Where keys are the name to have a constraint on, + * like 'MediaWiki'. Values are a constraint string like "1.26.1". + */ + public function getRequirements( array $info ); }