mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 20:50:55 +00:00
[PHP] Fix code example from README. Variable name was missing when using Basic auth. (#7777)
This commit is contained in:
parent
832919b84c
commit
cf8d8d56fb
@ -68,6 +68,7 @@ Please follow the [installation procedure](#installation--usage) and then run th
|
||||
require_once(__DIR__ . '/vendor/autoload.php');
|
||||
{{#apiInfo}}{{#apis}}{{#-first}}{{#operations}}{{#operation}}{{#-first}}{{#hasAuthMethods}}{{#authMethods}}{{#isBasic}}
|
||||
// Configure HTTP basic authorization: {{{name}}}
|
||||
$config = {{{invokerPackage}}}\Configuration::getDefaultConfiguration()
|
||||
->setUsername('YOUR_USERNAME')
|
||||
->setPassword('YOUR_PASSWORD');{{/isBasic}}{{#isApiKey}}
|
||||
// Configure API key authorization: {{{name}}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user