Skip to content

Commit

Permalink
Merge branch 'fix/allow-custom-http-client-implementations' into 'mas…
Browse files Browse the repository at this point in the history
…ter'

Allow for custom http client

See merge request transip/restapi-php-library!148
  • Loading branch information
xvilo committed Oct 25, 2021
2 parents 9c09b93 + 1be8d38 commit 2007bcf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
CHANGELOG
=========

6.9.2
-----
* Fixed a bug where a custom Guzzle Client will always get overridden.
* Fixed an issue where you were only able to use the Guzzle http client implementation.

6.9.1
-----
* Added support for ALIAS DNS resource record
Expand Down
5 changes: 3 additions & 2 deletions src/TransipAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Symfony\Component\Cache\Adapter\AdapterInterface;
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
use Transip\Api\Library\HttpClient\GuzzleClient;
use Transip\Api\Library\HttpClient\HttpClient;
use Transip\Api\Library\HttpClient\HttpClientInterface;
use Transip\Api\Library\Repository\ApiTestRepository;
use Transip\Api\Library\Repository\AuthRepository;
Expand Down Expand Up @@ -59,7 +60,7 @@
class TransipAPI
{
public const TRANSIP_API_ENDPOINT = "https://api.transip.nl/v6";
public const TRANSIP_API_LIBRARY_VERSION = "6.9.1";
public const TRANSIP_API_LIBRARY_VERSION = "6.9.2";
public const TRANSIP_API_DEMO_TOKEN = "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImN3MiFSbDU2eDNoUnkjelM4YmdOIn0.eyJpc3MiOiJhcGkudHJhbnNpcC5ubCIsImF1ZCI6ImFwaS50cmFuc2lwLm5sIiwianRpIjoiY3cyIVJsNTZ4M2hSeSN6UzhiZ04iLCJpYXQiOjE1ODIyMDE1NTAsIm5iZiI6MTU4MjIwMTU1MCwiZXhwIjoyMTE4NzQ1NTUwLCJjaWQiOiI2MDQ0OSIsInJvIjpmYWxzZSwiZ2siOmZhbHNlLCJrdiI6dHJ1ZX0.fYBWV4O5WPXxGuWG-vcrFWqmRHBm9yp0PHiYh_oAWxWxCaZX2Rf6WJfc13AxEeZ67-lY0TA2kSaOCp0PggBb_MGj73t4cH8gdwDJzANVxkiPL1Saqiw2NgZ3IHASJnisUWNnZp8HnrhLLe5ficvb1D9WOUOItmFC2ZgfGObNhlL2y-AMNLT4X7oNgrNTGm-mespo0jD_qH9dK5_evSzS3K8o03gu6p19jxfsnIh8TIVRvNdluYC2wo4qDl5EW5BEZ8OSuJ121ncOT1oRpzXB0cVZ9e5_UVAEr9X3f26_Eomg52-PjrgcRJ_jPIUYbrlo06KjjX2h0fzMr21ZE023Gw";

/**
Expand All @@ -82,7 +83,7 @@ public function __construct(
string $token = '',
string $endpointUrl = '',
AdapterInterface $cache = null,
GuzzleClient $httpClient = null
HttpClient $httpClient = null
) {
$endpoint = self::TRANSIP_API_ENDPOINT;

Expand Down

0 comments on commit 2007bcf

Please sign in to comment.