Skip to content

Commit

Permalink
Add option to pass baseUri
Browse files Browse the repository at this point in the history
  • Loading branch information
inserve-paul committed Apr 8, 2024
1 parent 87c2992 commit 436eba1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/MarketplaceAPIClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ class MarketplaceAPIClient
/**
* @param APIClient|null $apiClient
* @param LoggerInterface|null $logger
* @param string|null $baseUri
*/
public function __construct(?APIClient $apiClient = null, ?LoggerInterface $logger = null)
public function __construct(?APIClient $apiClient = null, ?LoggerInterface $logger = null, ?string $baseUri = null)
{
if (! $apiClient) {
$apiClient = new APIClient(
new Client(['base_uri' => 'https://marketplace.also.nl'])
new Client(['base_uri' => $baseUri ?? 'https://marketplace.also.nl'])
);
}

Expand Down

0 comments on commit 436eba1

Please sign in to comment.