Skip to content

Commit 8a978d8

Browse files
HugoMariofrantuma
authored andcommitted
fixed backslash incompatibility with handlebar 4.2.1 version
1 parent 115cf34 commit 8a978d8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/resources/handlebars/php/README.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ $config = {{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setApiK
7979
$config = {{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');{{/isOAuth}}{{/authMethods}}
8080
{{/hasAuthMethods}}
8181

82-
$apiInstance = new {{concat apiPackage '\\' classname}}(
82+
$apiInstance = new {{apiPackage}}{{backSlash}}{{classname}}(
8383
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
8484
// This is optional, `GuzzleHttp\Client` will be used as default.
8585
new GuzzleHttp\Client(){{#hasAuthMethods}},

src/main/resources/handlebars/php/api_doc.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# {{concat invokerPackage '\\' classname}}{{#description}}
1+
# {{invokerPackage}}{{backSlash}}{{classname}}{{#description}}
22
{{description}}{{/description}}
33

44
All URIs are relative to *{{basePath}}*
@@ -40,7 +40,7 @@ $config = {{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setApiK
4040
$config = {{{invokerPackage}}}\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');{{/isOAuth}}{{/authMethods}}
4141
{{/hasAuthMethods}}
4242

43-
$apiInstance = new {{concat apiPackage '\\' classname}}(
43+
$apiInstance = new {{apiPackage}}{{backSlash}}{{classname}}(
4444
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
4545
// This is optional, `GuzzleHttp\Client` will be used as default.
4646
new GuzzleHttp\Client(){{#hasAuthMethods}},

0 commit comments

Comments
 (0)