Skip to content

Commit

Permalink
Merge branch '1.7' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
willdurand committed May 28, 2013
2 parents d6ef85c + 9b9bbc3 commit c1d65fb
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 9 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ CHANGELOG

n/a

### 1.7.0 (2013-05-28) ###

* Updated: Geocoder now uses the official geoip library
* Added: LocaleAwareProviderInterface

### 1.6.0 (2013-05-22) ###

* Added: API key to MapQuestProvider
Expand Down
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@
"kriswallsmith/buzz": "@stable",
"guzzle/guzzle": "@stable",
"zendframework/zendframework": "~2.1",
"maxromanovsky/php-maxmind-geoip": "~1.12"
"geoip/geoip": "~1.13"
},
"suggest": {
"kriswallsmith/buzz": "Enabling Buzz allows you to use the BuzzHttpAdapter.",
"ext-curl": "Enabling the curl extension allows you to use CurlHttpAdapter.",
"ext-curl": "Enabling the curl extension allows you to use the CurlHttpAdapter.",
"ext-geoip": "Enabling the geoip extension allows you to use the MaxMindProvider.",
"guzzle/guzzle": "Enabling Guzzle allows you to use the GuzzleHttpAdapter.",
"zendframework/zend-http": "Enabling Zend Http allows you to use the ZendHttpAdapter.",
"maxromanovsky/php-maxmind-geoip": "If you are going to use MaxMindBinaryProvider."
"geoip/geoip": "If you are going to use the MaxMindBinaryProvider (conflict with geoip extension)."
},
"autoload": {
"psr-0": { "Geocoder": "src/" }
Expand Down
2 changes: 1 addition & 1 deletion src/Geocoder/Provider/BingMapsProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/**
* @author David Guyon <[email protected]>
*/
class BingMapsProvider extends AbstractProvider implements ProviderInterface
class BingMapsProvider extends AbstractProvider implements LocaleAwareProviderInterface
{
/**
* @var string
Expand Down
2 changes: 1 addition & 1 deletion src/Geocoder/Provider/GeonamesProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/**
* @author Giovanni Pirrotta <[email protected]>
*/
class GeonamesProvider extends AbstractProvider implements ProviderInterface
class GeonamesProvider extends AbstractProvider implements LocaleAwareProviderInterface
{
/**
* @var string
Expand Down
2 changes: 1 addition & 1 deletion src/Geocoder/Provider/GoogleMapsProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/**
* @author William Durand <[email protected]>
*/
class GoogleMapsProvider extends AbstractProvider implements ProviderInterface
class GoogleMapsProvider extends AbstractProvider implements LocaleAwareProviderInterface
{
/**
* @var string
Expand Down
23 changes: 23 additions & 0 deletions src/Geocoder/Provider/LocaleAwareProviderInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

/**
* This file is part of the Geocoder package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license MIT License
*/

namespace Geocoder\Provider;

interface LocaleAwareProviderInterface extends ProviderInterface
{
/**
* Return the locale to be used in locale aware requests.
*
* In case there is no locale in use, null is returned.
*
* @return string|null
*/
public function getLocale();
}
2 changes: 1 addition & 1 deletion src/Geocoder/Provider/OpenStreetMapsProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* @author Niklas Närhinen <[email protected]>
*/
class OpenStreetMapsProvider extends AbstractProvider implements ProviderInterface
class OpenStreetMapsProvider extends AbstractProvider implements LocaleAwareProviderInterface
{
/**
* @var string
Expand Down
2 changes: 1 addition & 1 deletion src/Geocoder/Provider/TomTomProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/**
* @author Antoine Corcy <[email protected]>
*/
class TomTomProvider extends AbstractProvider implements ProviderInterface
class TomTomProvider extends AbstractProvider implements LocaleAwareProviderInterface
{
/**
* @var string
Expand Down
2 changes: 1 addition & 1 deletion src/Geocoder/Provider/YandexProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/**
* @author Antoine Corcy <[email protected]>
*/
class YandexProvider extends AbstractProvider implements ProviderInterface
class YandexProvider extends AbstractProvider implements LocaleAwareProviderInterface
{
/**
* @var string
Expand Down

0 comments on commit c1d65fb

Please sign in to comment.