Implement extension registration from an extension.json file
[mediawiki.git] / includes / registration / Processor.php
blobe930fd3e5144f16862af7a12f414fffc5c3e83bb
1 <?php
3 /**
4 * Processors read associated arrays and register
5 * whatever is required
7 * @since 1.25
8 */
9 interface Processor {
11 /**
12 * Main entry point, processes the information
13 * provided.
14 * Callers should call "callback" after calling
15 * this function.
17 * @param string $path Absolute path of JSON file
18 * @param array $info
19 * @return array "credits" information to store
21 public function extractInfo( $path, array $info );
23 /**
24 * @return array With 'globals', 'defines', 'callbacks', 'credits' keys.
26 public function getExtractedInfo();