@@ -83,11 +83,11 @@ public PhpClientCodegen() {
83
83
typeMapping .put ("array" , "array" );
84
84
typeMapping .put ("list" , "array" );
85
85
86
- supportingFiles .add (new SupportingFile ("composer.mustache" , packagePath , "composer.json" ));
87
- supportingFiles .add (new SupportingFile ("configuration.mustache" , packagePath + "/lib" , "Configuration.php" ));
88
- supportingFiles .add (new SupportingFile ("ApiClient.mustache" , packagePath + "/lib" , "ApiClient.php" ));
89
- supportingFiles .add (new SupportingFile ("ApiException.mustache" , packagePath + "/lib" , "ApiException.php" ));
90
- supportingFiles .add (new SupportingFile ("require.mustache" , packagePath , invokerPackage + ".php" ));
86
+ supportingFiles .add (new SupportingFile ("composer.mustache" , packagePath . replace ( '/' , File . separatorChar ) , "composer.json" ));
87
+ supportingFiles .add (new SupportingFile ("configuration.mustache" , ( packagePath + "/lib" ). replace ( '/' , File . separatorChar ) , "Configuration.php" ));
88
+ supportingFiles .add (new SupportingFile ("ApiClient.mustache" , ( packagePath + "/lib" ). replace ( '/' , File . separatorChar ) , "ApiClient.php" ));
89
+ supportingFiles .add (new SupportingFile ("ApiException.mustache" , ( packagePath + "/lib" ). replace ( '/' , File . separatorChar ) , "ApiException.php" ));
90
+ supportingFiles .add (new SupportingFile ("require.mustache" , packagePath . replace ( '/' , File . separatorChar ) , invokerPackage + ".php" ));
91
91
}
92
92
93
93
@ Override
@@ -97,11 +97,11 @@ public String escapeReservedWord(String name) {
97
97
98
98
@ Override
99
99
public String apiFileFolder () {
100
- return outputFolder + "/" + apiPackage ().replace ('. ' , File .separatorChar );
100
+ return ( outputFolder + "/" + apiPackage ()) .replace ('/ ' , File .separatorChar );
101
101
}
102
102
103
103
public String modelFileFolder () {
104
- return outputFolder + "/" + modelPackage ().replace ('. ' , File .separatorChar );
104
+ return ( outputFolder + "/" + modelPackage ()) .replace ('/ ' , File .separatorChar );
105
105
}
106
106
107
107
@ Override
0 commit comments