Skip to content

Commit

Permalink
Set guzzle everytime incase env changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
vekien committed May 18, 2019
1 parent 8ba2707 commit 06ea551
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/XIVAPI/Guzzle/Guzzle.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,11 @@ class Guzzle
*/
private static function setClient()
{
if (self::$client === null) {
self::$client = new Client([
'base_uri' => self::$environment,
'timeout' => self::TIMEOUT,
'verify' => self::VERIFY,
]);
}
self::$client = new Client([
'base_uri' => self::$environment,
'timeout' => self::TIMEOUT,
'verify' => self::VERIFY,
]);
}

public static function setEnvironment(string $environment): void
Expand Down

0 comments on commit 06ea551

Please sign in to comment.