Move IP::isConfigured/TrustedProxy() to ProxyLookup service
authorKunal Mehta <legoktm@member.fsf.org>
Thu, 22 Sep 2016 02:52:06 +0000 (19:52 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 22 Sep 2016 03:02:09 +0000 (20:02 -0700)
commit39ee83f3885fc4ba0239ce085f11e8e20ffe97d3
tree8dbbd1b3dc034b216a2d0626d49f7ede3230a5cf
parent53b3c5619d368ed08960eaaf7df5489f0e2700e0
Move IP::isConfigured/TrustedProxy() to ProxyLookup service

This creates a new ProxyLookup service to house the
IP::isConfiguredProxy() and IP::isTrustedProxy() functions. The main
purpose of this refactoring is to make the IP class entirely independent
from MediaWiki, so it can be split into a separate library.

Change-Id: I60434a5f3d99880352bc0f72349c33b7d029ae09
RELEASE-NOTES-1.28
autoload.php
includes/Block.php
includes/MediaWikiServices.php
includes/ProxyLookup.php [new file with mode: 0644]
includes/ServiceWiring.php
includes/WebRequest.php
includes/utils/IP.php
tests/phpunit/includes/MediaWikiServicesTest.php
tests/phpunit/includes/WebRequestTest.php