call setHost on config

This commit is contained in:
nmonterroso 2015-06-22 12:13:39 -07:00
parent 5ef50f9f4b
commit 8e15bd6a85

View File

@ -39,7 +39,8 @@ class {{classname}} {
function __construct($apiClient = null) {
if ($apiClient == null) {
$apiClient = (new ApiClient())->setHost('{{basePath}}');
$apiClient = new ApiClient();
$apiClient->getConfig()->setHost('{{basePath}}');
}
$this->apiClient = $apiClient;