Allow callback functions for creating SpecialPages.
authordaniel <daniel.kinzler@wikimedia.de>
Thu, 7 Aug 2014 15:40:55 +0000 (17:40 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Thu, 18 Sep 2014 12:47:34 +0000 (14:47 +0200)
commit4f0b2f42419c283e8c94a5be6147d54ae7731a6b
treed3d4388f2aa976d269cebcec11c7a17572478215
parent9fa902583cc8e1c2a04b76a58c3fa517df06a013
Allow callback functions for creating SpecialPages.

This enables factory functions to be registered for special
pages, as an alterative to giving a class name. This follows the
same rationale as Ieb85493a7765, which introduced factory functions
for API modules.

Change-Id: Ia2107dc5af7869187ba5dc02a1bef46d6801e138
RELEASE-NOTES-1.24
includes/DefaultSettings.php
includes/PrefixSearch.php
includes/api/ApiQuerySiteinfo.php
includes/specialpage/SpecialPageFactory.php
tests/phpunit/includes/specialpage/SpecialPageFactoryTest.php [new file with mode: 0644]