Skip to content

Commit

Permalink
Getter for current instance of the http client (#57)
Browse files Browse the repository at this point in the history
In my workflow, it will be very useful to be able to get the current http client instance, change some of its settings, and them set it back
  • Loading branch information
sngrl2 authored Mar 3, 2023
1 parent 120a050 commit f4d5af8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,15 @@ public function setClient(BaseClient $client): void
$this->httpClient = $client;
}

/**
* Get current Guzzle client
* @return BaseClient
*/
public function getClient(): BaseClient
{
return $this->httpClient;
}

/**
* Sends GET request to Customer.io API.
* @param string $endpoint
Expand Down

0 comments on commit f4d5af8

Please sign in to comment.