Support the creation of special pages with services injected
authormainframe98 <k.s.werf@hotmail.com>
Fri, 6 Sep 2019 09:21:29 +0000 (11:21 +0200)
committermainframe98 <k.s.werf@hotmail.com>
Sun, 8 Sep 2019 10:57:54 +0000 (12:57 +0200)
commitb7b490e46db294b5ebae8e79a0fdc79cb3aace98
treea4e8fcdc6a3c3cabf6186fbe3ec53fbb6688c0cb
parentba40e8e26b4cec0785f43e47dd0123ca761a5101
Support the creation of special pages with services injected

Now that the ObjectFactory library supports object creation with
services (T222409), the special page factory can use the object
factory to create special pages based off a spec, allowing the
creation of special pages that need services injected.

The object factory now also handles constructing from class name
and from callable.

This also deprecates providing the special page list with an
instance of SpecialPage, which hasn't been necessary since
r15031.

Bug: T222388
Change-Id: Iabb78ce5c98cfb3b586644be35d984871cb750cb
RELEASE-NOTES-1.34
docs/extension.schema.v1.json
docs/extension.schema.v2.json
includes/ServiceWiring.php
includes/specialpage/SpecialPageFactory.php
tests/phpunit/includes/specialpage/SpecialPageFactoryTest.php