Skip to content

Commit e0ccb45

Browse files
Replace HTTPlug factories by PSR-17 (#1184)
* Replace HTTPlug factories by PSR-17 * minor fix --------- Co-authored-by: Nyholm <[email protected]>
1 parent 09d7eef commit e0ccb45

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ composer require geocoder-php/here-provider
2424
New applications on the Here platform use the `api_key` authentication method.
2525

2626
```php
27-
$httpClient = new \GuzzleHttp\Client();
27+
$httpClient = new \Http\Discovery\Psr18Client();
2828

2929
// You must provide an API key
3030
$provider = \Geocoder\Provider\Here\Here::createUsingApiKey($httpClient, 'your-api-key');
@@ -35,7 +35,7 @@ $result = $geocoder->geocodeQuery(GeocodeQuery::create('Buckingham Palace, Londo
3535
If you're using the legacy `app_code` authentication method, use the constructor on the provider like so:
3636

3737
```php
38-
$httpClient = new \GuzzleHttp\Client();
38+
$httpClient = new \Http\Discovery\Psr18Client();
3939

4040
// You must provide both the app_id and app_code
4141
$provider = new \Geocoder\Provider\Here\Here($httpClient, 'app-id', 'app-code');

composer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
"geocoder-php/provider-implementation": "1.0"
2121
},
2222
"require-dev": {
23-
"geocoder-php/provider-integration-tests": "^1.1",
24-
"php-http/curl-client": "^2.2",
23+
"geocoder-php/provider-integration-tests": "^1.6.3",
2524
"php-http/message": "^1.0",
2625
"phpunit/phpunit": "^9.5"
2726
},
@@ -43,4 +42,4 @@
4342
"test": "vendor/bin/phpunit",
4443
"test-ci": "vendor/bin/phpunit --coverage-text --coverage-clover=build/coverage.xml"
4544
}
46-
}
45+
}

0 commit comments

Comments
 (0)