registration: Move attributes out of the top level
authorKunal Mehta <legoktm@member.fsf.org>
Fri, 2 Dec 2016 06:02:28 +0000 (22:02 -0800)
committerKunal Mehta <legoktm@member.fsf.org>
Tue, 16 May 2017 03:09:50 +0000 (20:09 -0700)
commitfdb7e9410465fd8f2370c182dc18221cb7bd8470
tree2ba6f069c66ce7ffec722b290c8b0676a33f3951
parent162ce4474f42d6a351e838c2d2ebdd3933a9e3ab
registration: Move attributes out of the top level

This moves attributes out of the top level, and namespaces them under
each extension. If the extension that it belongs to is not installed,
the attribute is not exported and dropped.

The full name of the attribute is the name of the extension plus the
name of the attribute key. This enforces the recommendation that the
attribute name start with the extension's name.

Add test coverage for attributes under manifest_version 1 and 2.

Bug: T133627
Depends-On: I5a148763f68989c8da313a4fb1d0213658ee4495
Depends-On: I5a148763f68989c8da313a4fb1d0213658ee4459
Change-Id: I8613a027c56e2c9d2c6a83ca14749eb1c8fc23be
docs/extension.schema.v2.json
includes/registration/ExtensionProcessor.php
includes/registration/ExtensionRegistry.php
tests/phpunit/includes/registration/ExtensionProcessorTest.php