Skip to content

Commit 740a138

Browse files
authored
Expect a PSR-18 client instead of a PHP-HTTP client (#1110)
* Expect a PSR-18 client instead of a PHP-HTTP client * Update integration tests
1 parent 456e0f9 commit 740a138

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
99

1010
This is the a cache provider from the PHP Geocoder. This is a **READ ONLY** repository. See the
11-
[main repo](https://github.com/geocoder-php/Geocoder) for information and documentation.
11+
[main repo](https://github.com/geocoder-php/Geocoder) for information and documentation.
1212

1313
### Install
1414

@@ -20,11 +20,11 @@ composer require geocoder-php/cache-provider
2020
The `ProviderCache` allows you to use any [PSR-6](https://www.php-fig.org/psr/psr-6/) compatible cache driver.
2121
You can find compatible drivers on [packagist](https://packagist.org/providers/psr/cache-implementation).
2222

23-
By default, the result is cached forever.
23+
By default, the result is cached forever.
2424
You can set a cache expiry by passing an integer representing the number of seconds as the third parameter.
2525

2626
```php
27-
$httpClient = new \Http\Adapter\Guzzle6\Client();
27+
$httpClient = new \GuzzleHttp\Client();
2828
$provider = new \Geocoder\Provider\GoogleMaps\GoogleMaps($httpClient);
2929

3030
$psr6Cache = new ArrayCachePool(); // Requires `cache/array-adapter` package
@@ -45,5 +45,5 @@ $result2 = $geocoder->geocodeQuery(GeocodeQuery::create('Buckingham Palace, Lond
4545

4646
### Contribute
4747

48-
Contributions are very welcome! Send a pull request to the [main repository](https://github.com/geocoder-php/Geocoder) or
48+
Contributions are very welcome! Send a pull request to the [main repository](https://github.com/geocoder-php/Geocoder) or
4949
report any issues you find on the [issue tracker](https://github.com/geocoder-php/Geocoder/issues).

0 commit comments

Comments
 (0)