From a3394d32367ffed935a1dbc83f8cfe6842889bc6 Mon Sep 17 00:00:00 2001 From: Andreas Date: Wed, 3 May 2017 00:13:02 +0200 Subject: [PATCH 1/2] Add php-http/message to README install instructions php-http/message contains the GuzzleMessageFactory needed for message factory auto discovery to work. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 70d106dd2..9b5c47804 100644 --- a/README.md +++ b/README.md @@ -228,10 +228,10 @@ Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-7-ht which defines how HTTP message should be implemented. You can use any library to send HTTP messages that implements [php-http/client-implementation](https://packagist.org/providers/php-http/client-implementation). -To use Guzzle 6 you should run the follwing command: +To use Guzzle 6 you should run the following command: ``` -$ composer require php-http/guzzle6-adapter +$ composer require php-http/guzzle6-adapter php-http/message ``` ### Providers From 9750af0afa7a31aa5f3f43b470e874aa2f83bfd0 Mon Sep 17 00:00:00 2001 From: Andreas Date: Wed, 3 May 2017 00:13:54 +0200 Subject: [PATCH 2/2] Correct namespace for StatefulGeocoder in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9b5c47804..49ced4256 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ since each HTTP-based provider implements ```php $adapter = new \Http\Adapter\Guzzle6\Client(); $provider = new \Geocoder\Provider\GoogleMaps($adapter); -$geocoder = new StatefulGeocoder($provider, 'en'); +$geocoder = new \Geocoder\StatefulGeocoder($provider, 'en'); $geocoder->geocode(...); $geocoder->reverse(...);