Skip to content

Commit f45853f

Browse files
committed
Update config file in readme
1 parent dd9301d commit f45853f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,18 @@ By default, the configuration specifies a Chain Provider as the first provider,
113113
explicitly). The second GoogleMaps Provider outside of the Chain Provider is
114114
there just to illustrate this point (and is used by the PHPUnit tests).
115115
```php
116+
use Http\Client\Curl\Client;
117+
use Geocoder\Provider\BingMaps\BingMaps;
118+
use Geocoder\Provider\Chain\Chain;
119+
use Geocoder\Provider\FreeGeoIp\FreeGeoIp;
120+
use Geocoder\Provider\GoogleMaps\GoogleMaps;
121+
116122
return [
117123
'cache-duraction' => 999999999,
118124
'providers' => [
119125
Chain::class => [
120126
GoogleMaps::class => [
121-
'en',
122-
'us',
123-
true,
127+
'en-US',
124128
env('GOOGLE_MAPS_API_KEY'),
125129
],
126130
FreeGeoIp::class => [],
@@ -130,13 +134,11 @@ return [
130134
env('BING_MAPS_API_KEY'),
131135
],
132136
GoogleMaps::class => [
133-
'en',
134137
'us',
135-
true,
136138
env('GOOGLE_MAPS_API_KEY'),
137139
],
138140
],
139-
'adapter' => CurlHttpAdapter::class,
141+
'adapter' => Client::class,
140142
];
141143
```
142144

0 commit comments

Comments
 (0)