Make SpecialPageFactory a service
authorAryeh Gregor <ayg@aryeh.name>
Tue, 7 Aug 2018 10:58:31 +0000 (13:58 +0300)
committerJames D. Forrester <jforrester@wikimedia.org>
Fri, 17 Aug 2018 18:12:23 +0000 (11:12 -0700)
commitd4045035b07f27f20dc441960803a0df4ea60baa
tree8b409213becfa72b17d33cdc0334010df3b26aab
parent49efdca8f5fbca737b81032ca6595730aed4bbfd
Make SpecialPageFactory a service

Calling SpecialPageFactory methods statically is now soft-deprecated.

SpecialPageFactory::resetList() is a no-op, and I changed tests
in core to use overrideMwServices() instead.

Methods that fell back to $wgUser now require a User object being passed.

Depends-On: Ie1f80315871085b9fd4763a265b588849d94414d
Change-Id: Id8a92d57743f790b7d8c377c033cef38d1bb24de
RELEASE-NOTES-1.32
autoload.php
includes/MediaWikiServices.php
includes/ServiceWiring.php
includes/specialpage/SpecialPageFactory.php
includes/specialpage/SpecialPageFactory_deprecated.php [new file with mode: 0644]
tests/phpunit/MediaWikiTestCase.php
tests/phpunit/includes/PrefixSearchTest.php
tests/phpunit/includes/search/SearchEnginePrefixTest.php
tests/phpunit/includes/specialpage/SpecialPageFactoryTest.php
tests/phpunit/structure/SpecialPageFatalTest.php