Add custom InterwikiLookup to MediaWikiTitleCodec
authorYuri Astrakhan <yurik@wikimedia.org>
Sat, 14 Jan 2017 11:24:50 +0000 (03:24 -0800)
committerYurik <yurik@wikimedia.org>
Sat, 14 Jan 2017 18:55:42 +0000 (18:55 +0000)
commit3f7615be58308071b2209879f98274e991eb5d90
tree9c0f7ffcc8ba3cb8bdad7dac64889ef5448c83c2
parentb27aceb218dfd760e5cc34265739e85a38b82e17
Add custom InterwikiLookup to MediaWikiTitleCodec

This patch allows for a custom InterwikiLookup service
when constructing MediaWikiTitleCodec instances.
If not specified, it continues to get the service from
MediaWikiServices::getInstance()->getInterwikiLookup().

This patch will allow a fully customized instance
creation, without any global state.

Change-Id: Ica87aff5df4534aae0a32e307b27d88b3df023b4
includes/title/MediaWikiTitleCodec.php