Factor InterwikiLookup out of Interwiki class.
authordaniel <daniel.kinzler@wikimedia.de>
Fri, 30 Oct 2015 22:04:52 +0000 (23:04 +0100)
committerdaniel <daniel.kinzler@wikimedia.de>
Wed, 18 May 2016 09:57:32 +0000 (11:57 +0200)
commit025f15a208a75de47a71d3d8515e4b2b975fae1d
tree5166addc8040f920a09e3e163ddbeec601fbff73
parent33cb9e803ae020917bcc073e1599d2fdfbfb04c2
Factor InterwikiLookup out of Interwiki class.

This keeps the existing app logic for looking up interwiki information
intact in ClassicInterwikiLookup. The idea is to seamlessly switch to a new
implementation when it becomes available, while also allowing us to
switch back in case of problems.

Change-Id: I7d7424345d0ce3ce90ba284006ee9615e3d99baa
autoload.php
includes/MediaWikiServices.php
includes/ServiceWiring.php
includes/interwiki/ClassicInterwikiLookup.php [new file with mode: 0644]
includes/interwiki/Interwiki.php
includes/interwiki/InterwikiLookup.php [new file with mode: 0644]
tests/phpunit/includes/MediaWikiServicesTest.php
tests/phpunit/includes/interwiki/ClassicInterwikiLookupTest.php [new file with mode: 0644]
tests/phpunit/includes/interwiki/InterwikiTest.php