registration: Convert "config" into an object with metadata
authorKunal Mehta <legoktm@member.fsf.org>
Wed, 22 Jun 2016 22:33:35 +0000 (00:33 +0200)
committerKunal Mehta <legoktm@member.fsf.org>
Wed, 13 Jul 2016 21:58:00 +0000 (14:58 -0700)
commit83ec5909d463be00c70f92246401753b595144c0
tree9506fe49cab8eff59bb92ae4ad5ec95cac2cad01
parent0625f4e161304dcc85c5310f3ba708d2e0511c28
registration: Convert "config" into an object with metadata

To add extra metadata for "config" options without constantly adding
hacky underscore prefixed keys, convert "config" items into an object,
where the value is under a "value" key.

"_merge_strategy" is now just "merge_strategy", but still has the
underscore prefix for the cache structure, to avoid changing it.

Since this is a fully breaking change, it only applies to files with
manifest_version: 2 set. A conversion script has been added to assist
with automated conversion.

Bug: T133626
Change-Id: Id1071fc0647892438e5cd0e3ee621fbdaaa64014
docs/extension.schema.json
docs/extension.schema.v1.json [new file with mode: 0644]
includes/registration/ExtensionProcessor.php
includes/registration/ExtensionRegistry.php
maintenance/updateExtensionJsonSchema.php [new file with mode: 0644]