mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CookieWarning
synced 2024-11-23 22:03:41 +00:00
6634e8c829
Making GeoLocation an interface makes it easier to replace the underlying implementation from the current Http backed method. Change-Id: I2beb97772fd74ab08b2214c08d82dbc1ebfcdcd2
16 lines
306 B
PHP
16 lines
306 B
PHP
<?php
|
|
|
|
namespace CookieWarning;
|
|
|
|
class NoopGeoLocation implements GeoLocation {
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
* @param string $ip The IP address to lookup
|
|
* @return bool|null NULL if no geolocation service configured, false on error, true otherwise.
|
|
*/
|
|
public function locate( $ip ) {
|
|
return null;
|
|
}
|
|
}
|