Skip to content

Commit 9069849

Browse files
committed
Merge pull request geocoder-php#37 from TheMonk/TheMonk-patch-1
Updated README.md
2 parents 872830b + 46ccc1e commit 9069849

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

README.md

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Find the `providers` array key in `config/app.php` and register the **Geocoder S
5454
'providers' => array(
5555
// ...
5656

57-
'Toin0u\Geocoder\GeocoderServiceProvider',
57+
Toin0u\Geocoder\GeocoderServiceProvider::class,
5858
)
5959
```
6060

@@ -64,7 +64,7 @@ Find the `aliases` array key in `config/app.php` and register the **Geocoder Fac
6464
'aliases' => array(
6565
// ...
6666

67-
'Geocoder' => 'Toin0u\Geocoder\Facade\Geocoder',
67+
'Geocoder' => Toin0u\Geocoder\Facade\Geocoder::class,
6868
)
6969
```
7070

@@ -88,18 +88,13 @@ The `geocoder.adapter` service uses the cURL adapter. Override these services to
8888
adapter/providers you want by editing `config/geocoder.php`:
8989

9090
```php
91-
return array(
92-
'providers' => array(
93-
'Geocoder\Provider\GoogleMapsProvider' => array('my-locale', 'my-region', $ssl = true, 'my-api-key'),
94-
'Geocoder\Provider\GoogleMapsBusinessProvider' => array(
95-
'my-client-id', 'my-api-key', 'my-locale', 'my-region', $ssl = true
96-
),
97-
'Geocoder\Provider\CloudMadeProvider' => array('my-api-key'),
98-
'Geocoder\Provider\FreeGeoIpProvider' => null, // or array()
99-
// ...
100-
),
101-
'adapter' => 'Geocoder\HttpAdapter\CurlHttpAdapter'
102-
);
91+
return [
92+
'providers' => [
93+
'\Geocoder\Provider\GoogleMapsProvider' => ['en_EN', 'my-region', $ssl = false, 'MY_API_KEY'],
94+
'\Geocoder\Provider\GoogleMapsBusinessProvider' => ['my-locale', 'my-region', $ssl = true, 'MY_API_KEY'],
95+
],
96+
'adapter' => '\Geocoder\HttpAdapter\CurlHttpAdapter'
97+
];
10398
```
10499

105100
NB: As you can see the array value of the provider is the constructor arguments.

0 commit comments

Comments
 (0)