Skip to content

Commit 294d6e4

Browse files
committed
Use PSR-7, PSR-17 and PSR-18 instead of HttpPlug
1 parent fdc7b9d commit 294d6e4

12 files changed

+797
-493
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# 5.0.0
2+
3+
## BC Breaks
4+
5+
Use PSR-7, PSR-17 and PSR-18 instead of HttpPlug.
6+
7+
- Change the type of the first parameter of `Akeneo\Pim\ApiClientAkeneoPimClientBuilder::setHttpClient` from `Http\Client\HttpClient` to `Psr\Http\Client\ClientInterface`
8+
- Change the type of the first parameter of `Akeneo\Pim\ApiClientAkeneoPimClientBuilder::setRequestFactory` from `Http\Message\RequestFactory` to `Psr\Http\Message\RequestFactoryInterface`
9+
- Change the type of the first parameter of `Akeneo\Pim\ApiClientAkeneoPimClientBuilder::setStreamFactory` from `Http\Message\StreamFactory` to `Psr\Http\Message\StreamFactoryInterface`
10+
11+
Factory implementations are necessary as dependency.
12+
For example, with Guzzle:
13+
14+
```bash
15+
$ php composer.phar require akeneo/api-php-client php-http/guzzle6-adapter:^2.0 http-interop/http-factory-guzzle:^1.0
16+
```
17+
118
# 4.0.0 (2019-02-15)
219

320
## BC Breaks

composer.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,20 @@
2222
"require": {
2323
"php": ">=7.2",
2424
"psr/http-message": "^1.0",
25+
"psr/http-client": "^1.0",
26+
"psr/http-factory": "^1.0",
27+
"psr/http-message-implementation": "^1.0",
2528
"php-http/httplug": "^2.0",
26-
"php-http/message": "^1.7",
2729
"php-http/discovery": "^1.6",
28-
"php-http/message-factory": "^v1.0",
29-
"php-http/multipart-stream-builder": "^1.0",
30-
"php-http/client-implementation": "^1.0"
30+
"php-http/multipart-stream-builder": "^1.0"
3131
},
3232
"require-dev": {
3333
"friendsofphp/php-cs-fixer": "^2.14",
3434
"phpunit/phpunit": "^5.7",
3535
"phpspec/phpspec": "^5.0",
3636
"symfony/yaml": "^4.2",
3737
"donatj/mock-webserver": "^2.0",
38+
"http-interop/http-factory-guzzle": "^1.0",
3839
"php-http/guzzle6-adapter": "^2.0"
3940
},
4041
"config": {

0 commit comments

Comments
 (0)