All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Minimal version of PHP is increased to
7.4
.
- Deprecation error in the RequestException class (occurs in PHP 8+ only) was fixed
- PHPUnit version is narrowed to
^9.0
. - Docker wrapper added
- Fixed some deprecation warning temporarily for PHP 8.1.
- Changed a "moved" function to work properly with
guzzlehttp/psr7^2.0
.
- Bumped
guzzlehttp/guzzle
to^7.0
. - Bumped
phpunit/phpunit
to^9.0|^10.0
. - Bumped
guzzlehttp/psr7
to^2.0
.
- Added
Entity/File
to represent a file.
- Throws
RuntimeException
when trying to createRequestException
and response body is not seekable
- Basic authentication
Authorization
header must have prefixBasic
- Added ability to pass any configuration without whitelisting to the client
- Removed
ConfigHandler::appendConfiguration
, instead options are appended with configurations inClientFactoryAbstract::createApiClient:65
- If request body contains JSON,
Content-Type: application/json
will be set
- Library now accepts
headers
,proxy
andcookies
configuration.
- BearerAuthentication middleware added
- Placeholder in format
{name}
parsing supported inbase_url
. You should pass values to placeholders withurl_parameters
array tooptions
.
ResponseInterface $response
argument in\Paysera\Component\RestClientCommon\Exception\RequestException::__construct
and\Paysera\Component\RestClientCommon\Exception\RequestException::create
methods is now required.\Paysera\Component\RestClientCommon\Exception\RequestException::getResponse
method does not return null.
- Fixed travis configuration
ApiClient
now requires 3rd argument as instance ofClientFactoryAbstract
, 4th argument as options array.ClientFactoryAbstract
class is nowabstract
.ClientFactoryAbstract::OAUTH_BASE_URL
renamed toAUTH_BASE_URL
.- removed static methods from
ClientFactoryAbstract
, left only::create
for BC.
MacAuthentication
now supports key-value array ofparameters
. These will be encoded withext
data.withOptions
support added toApiClient
class. Look for more info in readme.auth_base_url
configuration parameter added.