diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpLumenServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpLumenServerCodegen.java index 14dc0768185f..69342f64db50 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpLumenServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpLumenServerCodegen.java @@ -129,35 +129,35 @@ public void processOpts() { supportingFiles.add(new SupportingFile("storage_logs_gitignore", srcBasePath + File.separator + "storage" + File.separator + "framework" + File.separator + "views", ".gitignore")); supportingFiles.add(new SupportingFile("storage_framework_cache_gitignore", srcBasePath + File.separator + "storage" + File.separator + "framework" + File.separator + "cache", ".gitignore")); supportingFiles.add(new SupportingFile("storage_logs_gitignore", srcBasePath + File.separator + "storage" + File.separator + "framework" + File.separator + "cache" + File.separator + "data", ".gitignore")); - supportingFiles.add(new SupportingFile("artisan", srcBasePath, "artisan")); + supportingFiles.add(new SupportingFile("artisan.mustache", srcBasePath, "artisan")); supportingFiles.add(new SupportingFile("composer.mustache", srcBasePath, "composer.json")); supportingFiles.add(new SupportingFile("readme.md", srcBasePath, "readme.md")); - supportingFiles.add(new SupportingFile("User.php", srcBasePath + File.separator + "app", "User.php")); - supportingFiles.add(new SupportingFile("Kernel.php", srcBasePath + File.separator + "app" + File.separator + "Console", "Kernel.php")); + supportingFiles.add(new SupportingFile("User.php.mustache", srcBasePath + File.separator + "app", "User.php")); + supportingFiles.add(new SupportingFile("Kernel.php.mustache", srcBasePath + File.separator + "app" + File.separator + "Console", "Kernel.php")); supportingFiles.add(new SupportingFile(".gitkeep", srcBasePath + File.separator + "app" + File.separator + "Console" + File.separator + "Commands", ".gitkeep")); - supportingFiles.add(new SupportingFile("Event.php", srcBasePath + File.separator + "app" + File.separator + "Events", "Event.php")); - supportingFiles.add(new SupportingFile("ExampleEvent.php", srcBasePath + File.separator + "app" + File.separator + "Events", "ExampleEvent.php")); - supportingFiles.add(new SupportingFile("Handler.php", srcBasePath + File.separator + "app" + File.separator + "Exceptions", "Handler.php")); - supportingFiles.add(new SupportingFile("Controller.php", srcBasePath + File.separator + "app" + File.separator + "Http" + File.separator + "Controllers" + File.separator, "Controller.php")); - supportingFiles.add(new SupportingFile("ExampleController.php", srcBasePath + File.separator + "app" + File.separator + "Http" + File.separator + "Controllers" + File.separator, "ExampleController.php")); - supportingFiles.add(new SupportingFile("Authenticate.php", srcBasePath + File.separator + "app" + File.separator + "Http" + File.separator + "Middleware" + File.separator, "Authenticate.php")); - supportingFiles.add(new SupportingFile("ExampleMiddleware.php", srcBasePath + File.separator + "app" + File.separator + "Http" + File.separator + "Middleware" + File.separator, "ExampleMiddleware.php")); - supportingFiles.add(new SupportingFile("ExampleJob.php", srcBasePath + File.separator + "app" + File.separator + "Jobs", "ExampleJob.php")); - supportingFiles.add(new SupportingFile("Job.php", srcBasePath + File.separator + "app" + File.separator + "Jobs", "Job.php")); - supportingFiles.add(new SupportingFile("ExampleListener.php", srcBasePath + File.separator + "app" + File.separator + "Listeners", "ExampleListener.php")); - supportingFiles.add(new SupportingFile("AppServiceProvider.php", srcBasePath + File.separator + "app" + File.separator + "Providers", "AppServiceProvider.php")); - supportingFiles.add(new SupportingFile("AuthServiceProvider.php", srcBasePath + File.separator + "app" + File.separator + "Providers", "AuthServiceProvider.php")); - supportingFiles.add(new SupportingFile("EventServiceProvider.php", srcBasePath + File.separator + "app" + File.separator + "Providers", "EventServiceProvider.php")); - supportingFiles.add(new SupportingFile("app.php", srcBasePath + File.separator + "bootstrap", "app.php")); - supportingFiles.add(new SupportingFile("ModelFactory.php", srcBasePath + File.separator + "database" + File.separator + "factories", "ModelFactory.php")); + supportingFiles.add(new SupportingFile("Event.php.mustache", srcBasePath + File.separator + "app" + File.separator + "Events", "Event.php")); + supportingFiles.add(new SupportingFile("ExampleEvent.php.mustache", srcBasePath + File.separator + "app" + File.separator + "Events", "ExampleEvent.php")); + supportingFiles.add(new SupportingFile("Handler.php.mustache", srcBasePath + File.separator + "app" + File.separator + "Exceptions", "Handler.php")); + supportingFiles.add(new SupportingFile("Controller.php.mustache", srcBasePath + File.separator + "app" + File.separator + "Http" + File.separator + "Controllers" + File.separator, "Controller.php")); + supportingFiles.add(new SupportingFile("ExampleController.php.mustache", srcBasePath + File.separator + "app" + File.separator + "Http" + File.separator + "Controllers" + File.separator, "ExampleController.php")); + supportingFiles.add(new SupportingFile("Authenticate.php.mustache", srcBasePath + File.separator + "app" + File.separator + "Http" + File.separator + "Middleware" + File.separator, "Authenticate.php")); + supportingFiles.add(new SupportingFile("ExampleMiddleware.php.mustache", srcBasePath + File.separator + "app" + File.separator + "Http" + File.separator + "Middleware" + File.separator, "ExampleMiddleware.php")); + supportingFiles.add(new SupportingFile("ExampleJob.php.mustache", srcBasePath + File.separator + "app" + File.separator + "Jobs", "ExampleJob.php")); + supportingFiles.add(new SupportingFile("Job.php.mustache", srcBasePath + File.separator + "app" + File.separator + "Jobs", "Job.php")); + supportingFiles.add(new SupportingFile("ExampleListener.php.mustache", srcBasePath + File.separator + "app" + File.separator + "Listeners", "ExampleListener.php")); + supportingFiles.add(new SupportingFile("AppServiceProvider.php.mustache", srcBasePath + File.separator + "app" + File.separator + "Providers", "AppServiceProvider.php")); + supportingFiles.add(new SupportingFile("AuthServiceProvider.php.mustache", srcBasePath + File.separator + "app" + File.separator + "Providers", "AuthServiceProvider.php")); + supportingFiles.add(new SupportingFile("EventServiceProvider.php.mustache", srcBasePath + File.separator + "app" + File.separator + "Providers", "EventServiceProvider.php")); + supportingFiles.add(new SupportingFile("app.php.mustache", srcBasePath + File.separator + "bootstrap", "app.php")); + supportingFiles.add(new SupportingFile("ModelFactory.php.mustache", srcBasePath + File.separator + "database" + File.separator + "factories", "ModelFactory.php")); supportingFiles.add(new SupportingFile(".gitkeep", srcBasePath + File.separator + "database" + File.separator + "migrations", ".gitkeep")); - supportingFiles.add(new SupportingFile("DatabaseSeeder.php", srcBasePath + File.separator + "database" + File.separator + "seeds", "DatabaseSeeder.php")); + supportingFiles.add(new SupportingFile("DatabaseSeeder.php.mustache", srcBasePath + File.separator + "database" + File.separator + "seeds", "DatabaseSeeder.php")); supportingFiles.add(new SupportingFile(".htaccess", srcBasePath + File.separator + "public", ".htaccess")); - supportingFiles.add(new SupportingFile("index.php", srcBasePath + File.separator + "public", "index.php")); + supportingFiles.add(new SupportingFile("index.php.mustache", srcBasePath + File.separator + "public", "index.php")); supportingFiles.add(new SupportingFile(".gitkeep", srcBasePath + File.separator + "resources" + File.separator + "views", ".gitkeep")); supportingFiles.add(new SupportingFile("routes.mustache", srcBasePath + File.separator + "routes", "web.php")); - supportingFiles.add(new SupportingFile("ExampleTest.php", srcBasePath + File.separator + "tests", "ExampleTest.php")); - supportingFiles.add(new SupportingFile("TestCase.php", srcBasePath + File.separator + "tests", "TestCase.php")); + supportingFiles.add(new SupportingFile("ExampleTest.php.mustache", srcBasePath + File.separator + "tests", "ExampleTest.php")); + supportingFiles.add(new SupportingFile("TestCase.php.mustache", srcBasePath + File.separator + "tests", "TestCase.php")); supportingFiles.add(new SupportingFile("editorconfig", srcBasePath, ".editorconfig")); supportingFiles.add(new SupportingFile("styleci", srcBasePath, ".styleci.yml")); supportingFiles.add(new SupportingFile("phpunit.xml", srcBasePath, "phpunit.xml")); diff --git a/modules/openapi-generator/src/main/resources/php-lumen/AppServiceProvider.php b/modules/openapi-generator/src/main/resources/php-lumen/AppServiceProvider.php.mustache similarity index 100% rename from modules/openapi-generator/src/main/resources/php-lumen/AppServiceProvider.php rename to modules/openapi-generator/src/main/resources/php-lumen/AppServiceProvider.php.mustache diff --git a/modules/openapi-generator/src/main/resources/php-lumen/AuthServiceProvider.php b/modules/openapi-generator/src/main/resources/php-lumen/AuthServiceProvider.php.mustache similarity index 100% rename from modules/openapi-generator/src/main/resources/php-lumen/AuthServiceProvider.php rename to modules/openapi-generator/src/main/resources/php-lumen/AuthServiceProvider.php.mustache diff --git a/modules/openapi-generator/src/main/resources/php-lumen/Authenticate.php b/modules/openapi-generator/src/main/resources/php-lumen/Authenticate.php.mustache similarity index 100% rename from modules/openapi-generator/src/main/resources/php-lumen/Authenticate.php rename to modules/openapi-generator/src/main/resources/php-lumen/Authenticate.php.mustache diff --git a/modules/openapi-generator/src/main/resources/php-lumen/Controller.php b/modules/openapi-generator/src/main/resources/php-lumen/Controller.php.mustache similarity index 100% rename from modules/openapi-generator/src/main/resources/php-lumen/Controller.php rename to modules/openapi-generator/src/main/resources/php-lumen/Controller.php.mustache diff --git a/modules/openapi-generator/src/main/resources/php-lumen/DatabaseSeeder.php b/modules/openapi-generator/src/main/resources/php-lumen/DatabaseSeeder.php.mustache similarity index 100% rename from modules/openapi-generator/src/main/resources/php-lumen/DatabaseSeeder.php rename to modules/openapi-generator/src/main/resources/php-lumen/DatabaseSeeder.php.mustache diff --git a/modules/openapi-generator/src/main/resources/php-lumen/Event.php b/modules/openapi-generator/src/main/resources/php-lumen/Event.php.mustache similarity index 100% rename from modules/openapi-generator/src/main/resources/php-lumen/Event.php rename to modules/openapi-generator/src/main/resources/php-lumen/Event.php.mustache diff --git a/modules/openapi-generator/src/main/resources/php-lumen/EventServiceProvider.php b/modules/openapi-generator/src/main/resources/php-lumen/EventServiceProvider.php.mustache similarity index 100% rename from modules/openapi-generator/src/main/resources/php-lumen/EventServiceProvider.php rename to modules/openapi-generator/src/main/resources/php-lumen/EventServiceProvider.php.mustache diff --git a/modules/openapi-generator/src/main/resources/php-lumen/ExampleController.php b/modules/openapi-generator/src/main/resources/php-lumen/ExampleController.php.mustache similarity index 100% rename from modules/openapi-generator/src/main/resources/php-lumen/ExampleController.php rename to modules/openapi-generator/src/main/resources/php-lumen/ExampleController.php.mustache diff --git a/modules/openapi-generator/src/main/resources/php-lumen/ExampleEvent.php b/modules/openapi-generator/src/main/resources/php-lumen/ExampleEvent.php.mustache similarity index 100% rename from modules/openapi-generator/src/main/resources/php-lumen/ExampleEvent.php rename to modules/openapi-generator/src/main/resources/php-lumen/ExampleEvent.php.mustache diff --git a/modules/openapi-generator/src/main/resources/php-lumen/ExampleJob.php b/modules/openapi-generator/src/main/resources/php-lumen/ExampleJob.php.mustache similarity index 100% rename from modules/openapi-generator/src/main/resources/php-lumen/ExampleJob.php rename to modules/openapi-generator/src/main/resources/php-lumen/ExampleJob.php.mustache diff --git a/modules/openapi-generator/src/main/resources/php-lumen/ExampleListener.php b/modules/openapi-generator/src/main/resources/php-lumen/ExampleListener.php.mustache similarity index 100% rename from modules/openapi-generator/src/main/resources/php-lumen/ExampleListener.php rename to modules/openapi-generator/src/main/resources/php-lumen/ExampleListener.php.mustache diff --git a/modules/openapi-generator/src/main/resources/php-lumen/ExampleMiddleware.php b/modules/openapi-generator/src/main/resources/php-lumen/ExampleMiddleware.php.mustache similarity index 100% rename from modules/openapi-generator/src/main/resources/php-lumen/ExampleMiddleware.php rename to modules/openapi-generator/src/main/resources/php-lumen/ExampleMiddleware.php.mustache diff --git a/modules/openapi-generator/src/main/resources/php-lumen/ExampleTest.php b/modules/openapi-generator/src/main/resources/php-lumen/ExampleTest.php.mustache similarity index 100% rename from modules/openapi-generator/src/main/resources/php-lumen/ExampleTest.php rename to modules/openapi-generator/src/main/resources/php-lumen/ExampleTest.php.mustache diff --git a/modules/openapi-generator/src/main/resources/php-lumen/Handler.php b/modules/openapi-generator/src/main/resources/php-lumen/Handler.php.mustache similarity index 100% rename from modules/openapi-generator/src/main/resources/php-lumen/Handler.php rename to modules/openapi-generator/src/main/resources/php-lumen/Handler.php.mustache diff --git a/modules/openapi-generator/src/main/resources/php-lumen/Job.php b/modules/openapi-generator/src/main/resources/php-lumen/Job.php.mustache similarity index 100% rename from modules/openapi-generator/src/main/resources/php-lumen/Job.php rename to modules/openapi-generator/src/main/resources/php-lumen/Job.php.mustache diff --git a/modules/openapi-generator/src/main/resources/php-lumen/Kernel.php b/modules/openapi-generator/src/main/resources/php-lumen/Kernel.php.mustache similarity index 100% rename from modules/openapi-generator/src/main/resources/php-lumen/Kernel.php rename to modules/openapi-generator/src/main/resources/php-lumen/Kernel.php.mustache diff --git a/modules/openapi-generator/src/main/resources/php-lumen/ModelFactory.php b/modules/openapi-generator/src/main/resources/php-lumen/ModelFactory.php.mustache similarity index 100% rename from modules/openapi-generator/src/main/resources/php-lumen/ModelFactory.php rename to modules/openapi-generator/src/main/resources/php-lumen/ModelFactory.php.mustache diff --git a/modules/openapi-generator/src/main/resources/php-lumen/TestCase.php b/modules/openapi-generator/src/main/resources/php-lumen/TestCase.php.mustache similarity index 100% rename from modules/openapi-generator/src/main/resources/php-lumen/TestCase.php rename to modules/openapi-generator/src/main/resources/php-lumen/TestCase.php.mustache diff --git a/modules/openapi-generator/src/main/resources/php-lumen/User.php b/modules/openapi-generator/src/main/resources/php-lumen/User.php.mustache similarity index 100% rename from modules/openapi-generator/src/main/resources/php-lumen/User.php rename to modules/openapi-generator/src/main/resources/php-lumen/User.php.mustache diff --git a/modules/openapi-generator/src/main/resources/php-lumen/app.php b/modules/openapi-generator/src/main/resources/php-lumen/app.php.mustache similarity index 100% rename from modules/openapi-generator/src/main/resources/php-lumen/app.php rename to modules/openapi-generator/src/main/resources/php-lumen/app.php.mustache diff --git a/modules/openapi-generator/src/main/resources/php-lumen/artisan b/modules/openapi-generator/src/main/resources/php-lumen/artisan.mustache similarity index 100% rename from modules/openapi-generator/src/main/resources/php-lumen/artisan rename to modules/openapi-generator/src/main/resources/php-lumen/artisan.mustache diff --git a/modules/openapi-generator/src/main/resources/php-lumen/index.php b/modules/openapi-generator/src/main/resources/php-lumen/index.php.mustache similarity index 100% rename from modules/openapi-generator/src/main/resources/php-lumen/index.php rename to modules/openapi-generator/src/main/resources/php-lumen/index.php.mustache diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/gradle/wrapper/gradle-wrapper.jar b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/gradle/wrapper/gradle-wrapper.jar index e35d600ab118..cc4fdc293d0e 100644 Binary files a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/gradle/wrapper/gradle-wrapper.jar and b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/gradle/wrapper/gradle-wrapper.jar differ