Skip to content

Commit c1d65fb

Browse files
committed
Merge branch '1.7' into master
2 parents d6ef85c + 9b9bbc3 commit c1d65fb

9 files changed

+38
-9
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ CHANGELOG
55

66
n/a
77

8+
### 1.7.0 (2013-05-28) ###
9+
10+
* Updated: Geocoder now uses the official geoip library
11+
* Added: LocaleAwareProviderInterface
12+
813
### 1.6.0 (2013-05-22) ###
914

1015
* Added: API key to MapQuestProvider

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@
1818
"kriswallsmith/buzz": "@stable",
1919
"guzzle/guzzle": "@stable",
2020
"zendframework/zendframework": "~2.1",
21-
"maxromanovsky/php-maxmind-geoip": "~1.12"
21+
"geoip/geoip": "~1.13"
2222
},
2323
"suggest": {
2424
"kriswallsmith/buzz": "Enabling Buzz allows you to use the BuzzHttpAdapter.",
25-
"ext-curl": "Enabling the curl extension allows you to use CurlHttpAdapter.",
25+
"ext-curl": "Enabling the curl extension allows you to use the CurlHttpAdapter.",
26+
"ext-geoip": "Enabling the geoip extension allows you to use the MaxMindProvider.",
2627
"guzzle/guzzle": "Enabling Guzzle allows you to use the GuzzleHttpAdapter.",
2728
"zendframework/zend-http": "Enabling Zend Http allows you to use the ZendHttpAdapter.",
28-
"maxromanovsky/php-maxmind-geoip": "If you are going to use MaxMindBinaryProvider."
29+
"geoip/geoip": "If you are going to use the MaxMindBinaryProvider (conflict with geoip extension)."
2930
},
3031
"autoload": {
3132
"psr-0": { "Geocoder": "src/" }

src/Geocoder/Provider/BingMapsProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
* @author David Guyon <[email protected]>
2020
*/
21-
class BingMapsProvider extends AbstractProvider implements ProviderInterface
21+
class BingMapsProvider extends AbstractProvider implements LocaleAwareProviderInterface
2222
{
2323
/**
2424
* @var string

src/Geocoder/Provider/GeonamesProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
* @author Giovanni Pirrotta <[email protected]>
2020
*/
21-
class GeonamesProvider extends AbstractProvider implements ProviderInterface
21+
class GeonamesProvider extends AbstractProvider implements LocaleAwareProviderInterface
2222
{
2323
/**
2424
* @var string

src/Geocoder/Provider/GoogleMapsProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
* @author William Durand <[email protected]>
2020
*/
21-
class GoogleMapsProvider extends AbstractProvider implements ProviderInterface
21+
class GoogleMapsProvider extends AbstractProvider implements LocaleAwareProviderInterface
2222
{
2323
/**
2424
* @var string
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
/**
4+
* This file is part of the Geocoder package.
5+
* For the full copyright and license information, please view the LICENSE
6+
* file that was distributed with this source code.
7+
*
8+
* @license MIT License
9+
*/
10+
11+
namespace Geocoder\Provider;
12+
13+
interface LocaleAwareProviderInterface extends ProviderInterface
14+
{
15+
/**
16+
* Return the locale to be used in locale aware requests.
17+
*
18+
* In case there is no locale in use, null is returned.
19+
*
20+
* @return string|null
21+
*/
22+
public function getLocale();
23+
}

src/Geocoder/Provider/OpenStreetMapsProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/**
1717
* @author Niklas Närhinen <[email protected]>
1818
*/
19-
class OpenStreetMapsProvider extends AbstractProvider implements ProviderInterface
19+
class OpenStreetMapsProvider extends AbstractProvider implements LocaleAwareProviderInterface
2020
{
2121
/**
2222
* @var string

src/Geocoder/Provider/TomTomProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
* @author Antoine Corcy <[email protected]>
2020
*/
21-
class TomTomProvider extends AbstractProvider implements ProviderInterface
21+
class TomTomProvider extends AbstractProvider implements LocaleAwareProviderInterface
2222
{
2323
/**
2424
* @var string

src/Geocoder/Provider/YandexProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/**
1818
* @author Antoine Corcy <[email protected]>
1919
*/
20-
class YandexProvider extends AbstractProvider implements ProviderInterface
20+
class YandexProvider extends AbstractProvider implements LocaleAwareProviderInterface
2121
{
2222
/**
2323
* @var string

0 commit comments

Comments
 (0)