Simplify canUpdateTags function in ChangeTags
[lhc/web/wiklou.git] / includes / registration / Processor.php
index e930fd3..e1aaca7 100644 (file)
@@ -16,12 +16,18 @@ 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 'globals', 'defines', 'callbacks', 'credits' keys.
+        * @return array With following keys:
+        *              'globals' - variables to be set to $GLOBALS
+        *              'defines' - constants to define
+        *              'callbacks' - functions to be executed by the registry
+        *              'credits' - metadata to be stored by registry
+        *              'attributes' - registration info which isn't a global variable
         */
        public function getExtractedInfo();
 }