mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 11:23:58 +00:00
call setHost on config
This commit is contained in:
parent
5ef50f9f4b
commit
8e15bd6a85
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user