forked from loafle/openapi-generator-original
[php-slim4] Reduce log noise (#10229)
* Add AbstractAuthenticator once * Refresh samples
This commit is contained in:
@@ -251,16 +251,12 @@ public class PhpSlim4ServerCodegen extends AbstractPhpCodegen {
|
||||
}
|
||||
});
|
||||
}
|
||||
return objs;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<CodegenSecurity> fromSecurity(Map<String, SecurityScheme> securitySchemeMap) {
|
||||
List<CodegenSecurity> codegenSecurities = super.fromSecurity(securitySchemeMap);
|
||||
if (Boolean.FALSE.equals(codegenSecurities.isEmpty())) {
|
||||
// generate authenticator only when hasAuthMethods === true
|
||||
if (objs.containsKey("hasAuthMethods") && Boolean.TRUE.equals(objs.get("hasAuthMethods"))) {
|
||||
supportingFiles.add(new SupportingFile("abstract_authenticator.mustache", toSrcPath(authPackage, srcBasePath), toAbstractName("Authenticator") + ".php"));
|
||||
}
|
||||
return codegenSecurities;
|
||||
return objs;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -8,24 +8,6 @@ lib/Api/AbstractPetApi.php
|
||||
lib/Api/AbstractStoreApi.php
|
||||
lib/Api/AbstractUserApi.php
|
||||
lib/Auth/AbstractAuthenticator.php
|
||||
lib/Auth/AbstractAuthenticator.php
|
||||
lib/Auth/AbstractAuthenticator.php
|
||||
lib/Auth/AbstractAuthenticator.php
|
||||
lib/Auth/AbstractAuthenticator.php
|
||||
lib/Auth/AbstractAuthenticator.php
|
||||
lib/Auth/AbstractAuthenticator.php
|
||||
lib/Auth/AbstractAuthenticator.php
|
||||
lib/Auth/AbstractAuthenticator.php
|
||||
lib/Auth/AbstractAuthenticator.php
|
||||
lib/Auth/AbstractAuthenticator.php
|
||||
lib/Auth/AbstractAuthenticator.php
|
||||
lib/Auth/AbstractAuthenticator.php
|
||||
lib/Auth/AbstractAuthenticator.php
|
||||
lib/Auth/AbstractAuthenticator.php
|
||||
lib/Auth/AbstractAuthenticator.php
|
||||
lib/Auth/AbstractAuthenticator.php
|
||||
lib/Auth/AbstractAuthenticator.php
|
||||
lib/Auth/AbstractAuthenticator.php
|
||||
lib/BaseModel.php
|
||||
lib/Middleware/JsonBodyParserMiddleware.php
|
||||
lib/Model/ApiResponse.php
|
||||
|
||||
Reference in New Issue
Block a user