Remove @todo in SpecialPage for making it into ContextSource
authoraude <aude.wiki@gmail.com>
Thu, 24 Jul 2014 13:48:37 +0000 (15:48 +0200)
committerLegoktm <legoktm.wikipedia@gmail.com>
Sat, 9 Aug 2014 01:12:26 +0000 (01:12 +0000)
It is better to have $context as a member variable,
which can be accessed, $special->getContext(), as needed
with a composition approach instead of inheritance.

Having SpecialPage directly inherit makes testing code
a bit more challenging and messy.

Change-Id: I5e5587cbbc9abfb2fa4ab1e7603cd2ddcad1b96d

includes/specialpage/SpecialPage.php

index a72b297..4edd87a 100644 (file)
@@ -27,7 +27,6 @@
  * Includes some static functions for handling the special page list deprecated
  * in favor of SpecialPageFactory.
  *
- * @todo Turn this into a real ContextSource
  * @ingroup SpecialPage
  */
 class SpecialPage {