mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 11:23:58 +00:00
don't prepend the invokerPackage - an artifact from an earlier implementation
This commit is contained in:
parent
6623e120cd
commit
60b0ffeb0e
@ -30,8 +30,8 @@ public class PhpClientCodegen extends DefaultCodegen implements CodegenConfig {
|
||||
modelTemplateFiles.put("model.mustache", ".php");
|
||||
apiTemplateFiles.put("api.mustache", ".php");
|
||||
templateDir = "php";
|
||||
apiPackage = "Api";
|
||||
modelPackage = "Model";
|
||||
apiPackage = invokerPackage + "\\Api";
|
||||
modelPackage = invokerPackage + "\\Model";
|
||||
|
||||
reservedWords = new HashSet<String>(
|
||||
Arrays.asList(
|
||||
@ -134,11 +134,11 @@ public class PhpClientCodegen extends DefaultCodegen implements CodegenConfig {
|
||||
}
|
||||
|
||||
if (additionalProperties.containsKey("modelPackage")) {
|
||||
this.setModelPackage(invokerPackage + "\\" + additionalProperties.get("modelPackage"));
|
||||
this.setModelPackage((String) additionalProperties.get("modelPackage"));
|
||||
}
|
||||
|
||||
if (additionalProperties.containsKey("apiPackage")) {
|
||||
this.setApiPackage(invokerPackage + "\\" + additionalProperties.get("apiPackage"));
|
||||
this.setApiPackage((String) additionalProperties.get("apiPackage"));
|
||||
}
|
||||
|
||||
additionalProperties.put("srcBasePath", srcBasePath);
|
||||
|
Loading…
Reference in New Issue
Block a user