registration: Provide credits information to callbacks
authorKunal Mehta <legoktm@member.fsf.org>
Thu, 1 Dec 2016 07:19:37 +0000 (23:19 -0800)
committerLegoktm <legoktm@member.fsf.org>
Sun, 4 Dec 2016 02:15:01 +0000 (02:15 +0000)
commitb54acaf847131fdac9352aa35e4b82327751a3de
tree6fbb10af3fbc25dfe9b777e4117dc3ebe85ae387
parentda68c0ae8256e357ff9a532c434a07788128d759
registration: Provide credits information to callbacks

Registration callbacks now provide basic credits information (name,
path, type, authors, license-name, version, etc.) as the first argument.
The main use case right now for this is to support extension VERSION
constants for backwards-compatibility.

In addition, callbacks now run *after* attributes are exposed, so
callbacks could use data from them if they wanted to.

Bug: T151136
Change-Id: Ic5965dd4e259e1f46222ac92b8e78750e67b51d6
includes/registration/ExtensionProcessor.php
includes/registration/ExtensionRegistry.php