Use PSR-7, PSR-17 and PSR-18 instead of HttpPlug.
- Change the type of the first parameter of
Akeneo\Pim\ApiClientAkeneoPimClientBuilder::setHttpClient
fromHttp\Client\HttpClient
toPsr\Http\Client\ClientInterface
- Change the type of the first parameter of
Akeneo\Pim\ApiClientAkeneoPimClientBuilder::setRequestFactory
fromHttp\Message\RequestFactory
toPsr\Http\Message\RequestFactoryInterface
- Change the type of the first parameter of
Akeneo\Pim\ApiClientAkeneoPimClientBuilder::setStreamFactory
fromHttp\Message\StreamFactory
toPsr\Http\Message\StreamFactoryInterface
Factory implementations are necessary as dependency. For example, with Guzzle:
$ php composer.phar require akeneo/api-php-client php-http/guzzle6-adapter:^2.0 http-interop/http-factory-guzzle:^1.0
- Add support for PHP 7.1. This is done for some connectors thar are still using it.
Be careful, this PHP version is EOL in december 2020.
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.
- API-592: Handle error when the response is a redirection
- API-487: Isolate files manipulation in a dedicated service
- API-562: upsert a list of attribute options
- API-543: Create a new media file and associate it to a product model
- Change the constructor of
Akeneo\Pim\ApiClient\Api\ProductMediaFileApi
to addAkeneo\Pim\ApiClient\FileSystem\FileSystemInterface
- Add method
Akeneo\Pim\ApiClient\Api\AttributeOptionApiInterface::upsertList
- API-599: fix const not supported by PHP 5.6
- API-592: Handle error when the response is a redirection (#72)