Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit 33f89fd

Browse files
committed
Rename PHP .gitignore to gitignore
Java resources may not load .gitignore, this follows suit with other generators and uses "gitignore" (some use "gitignore.mustache").
1 parent d256cec commit 33f89fd

File tree

10 files changed

+2
-2
lines changed

10 files changed

+2
-2
lines changed

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPhpCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public void processOpts() {
218218
// supportingFiles.add(new SupportingFile("LICENSE", "", "LICENSE"));
219219

220220
// all PHP codegens requires Composer, it means that we need to exclude from SVN at least vendor folder
221-
supportingFiles.add(new SupportingFile(".gitignore", "", ".gitignore"));
221+
supportingFiles.add(new SupportingFile("gitignore", "", ".gitignore"));
222222
}
223223

224224
public String getPackageName() {

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpSilexServerCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public PhpSilexServerCodegen() {
133133
supportingFiles.add(new SupportingFile(".htaccess", "", ".htaccess"));
134134

135135
// remove this line when this class extends AbstractPhpCodegen
136-
supportingFiles.add(new SupportingFile(".gitignore", "", ".gitignore"));
136+
supportingFiles.add(new SupportingFile("gitignore", "", ".gitignore"));
137137
}
138138

139139
@Override

0 commit comments

Comments
 (0)