Skip to content

Commit

Permalink
Updated usage of configuration for SessionApi
Browse files Browse the repository at this point in the history
  • Loading branch information
adnedelcu committed Oct 15, 2018
1 parent 1ef2a05 commit 50001fa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Api/SessionApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ class SessionApi
public function __construct(\Reepay\ApiClient $apiClient = null)
{
if ($apiClient === null) {
$config = new Configuration();
$config->setHost($this->host);
$apiClient = new ApiClient($config);
Configuration::getDefaultConfiguration()->setHost($this->host);
$apiClient = new ApiClient();
}

$this->apiClient = $apiClient;
Expand Down

0 comments on commit 50001fa

Please sign in to comment.