registration: Don't initialize MWServices super early
authorKunal Mehta <legoktm@member.fsf.org>
Tue, 10 Jan 2017 18:47:08 +0000 (10:47 -0800)
committerKunal Mehta <legoktm@member.fsf.org>
Tue, 10 Jan 2017 18:47:08 +0000 (10:47 -0800)
commita6f172ef3cced06f808e22c425bb272e4f5178c7
tree0af850737d09c4aca54a8627bfdf363bac616b10
parent704f30728956daaaf818ef30fcf4c7adf89ec037
registration: Don't initialize MWServices super early

Previously, MediaWikiServices would be initialized on the first
wfLoadExtension() call, which is super early and before it should be.
There's actually no reason we need to create the BagOStuff object in the
constructor, so let's defer it to loadFromQueue(). It now gets called
from the top of Setup.php, which is still a little early, but better
than before.

Bug: T154960
Change-Id: I3feef3b974ba1ba3afec0d453e1899cd476e72fb
includes/registration/ExtensionRegistry.php