Use IContextSource instead of RequestContext inside type hints and instanceof checks...
authorDaniel Friesen <dantman@users.mediawiki.org>
Thu, 15 Sep 2011 15:19:49 +0000 (15:19 +0000)
committerDaniel Friesen <dantman@users.mediawiki.org>
Thu, 15 Sep 2011 15:19:49 +0000 (15:19 +0000)
commit391736c0812b301beefe05f96c4c937996b7ba40
tree9a3b66870808f61846bffe130f913f6d93f3e27e
parentfcb0de554f61e3905430c181c0ddd767bcacebce
Use IContextSource instead of RequestContext inside type hints and instanceof checks. All we need is something that implements IContextSource and it's possible we may want to implement types of RequestContext that don't directly extend RequestContext but are perfectly valid to be passed to classes.
14 files changed:
includes/Action.php
includes/Article.php
includes/ChangesList.php
includes/HTMLForm.php
includes/OutputPage.php
includes/Preferences.php
includes/RequestContext.php
includes/RevisionList.php
includes/SpecialPage.php
includes/SpecialPageFactory.php
includes/Wiki.php
includes/logging/LogFormatter.php
includes/revisiondelete/RevisionDeleteAbstracts.php
includes/specials/SpecialUpload.php