Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# 5.0.0

## BC Breaks

Use PSR-7, PSR-17 and PSR-18 instead of HttpPlug.

- Change the type of the first parameter of `Akeneo\Pim\ApiClientAkeneoPimClientBuilder::setHttpClient` from `Http\Client\HttpClient` to `Psr\Http\Client\ClientInterface`
- Change the type of the first parameter of `Akeneo\Pim\ApiClientAkeneoPimClientBuilder::setRequestFactory` from `Http\Message\RequestFactory` to `Psr\Http\Message\RequestFactoryInterface`
- Change the type of the first parameter of `Akeneo\Pim\ApiClientAkeneoPimClientBuilder::setStreamFactory` from `Http\Message\StreamFactory` to `Psr\Http\Message\StreamFactoryInterface`

Factory implementations are necessary as dependency.
For example, with Guzzle:

```bash
$ php composer.phar require akeneo/api-php-client php-http/guzzle6-adapter:^2.0 http-interop/http-factory-guzzle:^1.0
```

# 4.0.0 (2019-02-15)

## BC Breaks
Expand All @@ -6,6 +23,8 @@ Drop support for PHP 5.6, PHP 7.0 and PHP 7.1

Change the response type from `StreamInterface` to `Response` for `\Akeneo\Pim\ApiClient\Api\MediaFileApiInterface::download`

It allows to get the filename from the response, and also the Mime type.

# 3.0.0 (2018-06-26)

# 2.0.1 (2018-05-03)
Expand Down
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,20 @@
"require": {
"php": ">=7.2",
"psr/http-message": "^1.0",
"psr/http-client": "^1.0",
"psr/http-factory": "^1.0",
"psr/http-message-implementation": "^1.0",
"php-http/httplug": "^2.0",
"php-http/message": "^1.7",
"php-http/discovery": "^1.6",
"php-http/message-factory": "^v1.0",
"php-http/multipart-stream-builder": "^1.0",
"php-http/client-implementation": "^1.0"
"php-http/multipart-stream-builder": "^1.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.14",
"phpunit/phpunit": "^5.7",
"phpspec/phpspec": "^5.0",
"symfony/yaml": "^4.2",
"donatj/mock-webserver": "^2.0",
"http-interop/http-factory-guzzle": "^1.0",
"php-http/guzzle6-adapter": "^2.0"
},
"config": {
Expand Down
Loading