MWServices load new ServiceWiringFiles after ExtRegistry load
authoraddshore <addshorewiki@gmail.com>
Tue, 18 Oct 2016 10:41:59 +0000 (11:41 +0100)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 18 Oct 2016 18:01:56 +0000 (18:01 +0000)
commitcf6931f83be7ce799471d4fbbf123846681c7cdb
treecb8dbcd92985a10ace0dc2a6d9a8af5ec158ac96
parentda49ad8e8c5331fa8a49fa0bbc626f14d49c5485
MWServices load new ServiceWiringFiles after ExtRegistry load

Extensions that include ServiceWiringFiles in their
extension.json file do not currently get loaded.
This is due to the resetGlobalInstance call after
the extension.json files are loaded not reloading
service wiring.

Adding the 'load' param resolves this.

The current sequence of events is as follows:
 - Setup.php
 - ExtensionRegistry::loadFromQueue
 - ExtensionRegistry::exportExtractedData
 - MediawikiServices::resetGlobalInstance

This can be tested using the Cognate extension
(linked in the ticket) which may be the first extension
to use both extension registration while including
service wiring files.

Bug: T148419
Change-Id: Ic42ac8e28c66b79193bcafe332b1ef2ebc29742d
includes/MediaWikiServices.php