From 8e15bd6a85e2a1cc5d04b8ac067d2daa33fbf146 Mon Sep 17 00:00:00 2001 From: nmonterroso Date: Mon, 22 Jun 2015 12:13:39 -0700 Subject: [PATCH] call setHost on config --- modules/swagger-codegen/src/main/resources/php/api.mustache | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/swagger-codegen/src/main/resources/php/api.mustache b/modules/swagger-codegen/src/main/resources/php/api.mustache index d276d1c652c..6fb9fb5dd06 100644 --- a/modules/swagger-codegen/src/main/resources/php/api.mustache +++ b/modules/swagger-codegen/src/main/resources/php/api.mustache @@ -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;