From 471a7c5671a9d8050ac546b2826cb8ea2cb5cdbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20FOUCRET?= Date: Fri, 26 Jul 2019 06:10:34 +0200 Subject: [PATCH 1/3] Make code header configurable. --- .../src/main/resources/elastic-php-client/Client.mustache | 7 +------ .../src/main/resources/elastic-php-client/api.mustache | 7 +------ .../src/main/resources/elastic-php-client/header.mustache | 6 ++++++ 3 files changed, 8 insertions(+), 12 deletions(-) create mode 100644 resources/dev/elastic-openapi-codegen-php/src/main/resources/elastic-php-client/header.mustache diff --git a/resources/dev/elastic-openapi-codegen-php/src/main/resources/elastic-php-client/Client.mustache b/resources/dev/elastic-openapi-codegen-php/src/main/resources/elastic-php-client/Client.mustache index 3c5e901..1098338 100644 --- a/resources/dev/elastic-openapi-codegen-php/src/main/resources/elastic-php-client/Client.mustache +++ b/resources/dev/elastic-openapi-codegen-php/src/main/resources/elastic-php-client/Client.mustache @@ -1,10 +1,5 @@ header}} namespace {{invokerPackage}}; diff --git a/resources/dev/elastic-openapi-codegen-php/src/main/resources/elastic-php-client/api.mustache b/resources/dev/elastic-openapi-codegen-php/src/main/resources/elastic-php-client/api.mustache index d48838a..e98f60e 100644 --- a/resources/dev/elastic-openapi-codegen-php/src/main/resources/elastic-php-client/api.mustache +++ b/resources/dev/elastic-openapi-codegen-php/src/main/resources/elastic-php-client/api.mustache @@ -1,10 +1,5 @@ header}} namespace {{package}}; diff --git a/resources/dev/elastic-openapi-codegen-php/src/main/resources/elastic-php-client/header.mustache b/resources/dev/elastic-openapi-codegen-php/src/main/resources/elastic-php-client/header.mustache new file mode 100644 index 0000000..425efa6 --- /dev/null +++ b/resources/dev/elastic-openapi-codegen-php/src/main/resources/elastic-php-client/header.mustache @@ -0,0 +1,6 @@ +/** + * This file is part of the Elastic OpenAPI PHP code generator. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ From 22a55498d602e70656714f4bb0f35e21eb4933ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20FOUCRET?= Date: Fri, 26 Jul 2019 06:16:00 +0200 Subject: [PATCH 2/3] Update default header file. --- .../src/main/resources/elastic-php-client/header.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/dev/elastic-openapi-codegen-php/src/main/resources/elastic-php-client/header.mustache b/resources/dev/elastic-openapi-codegen-php/src/main/resources/elastic-php-client/header.mustache index 425efa6..faa49be 100644 --- a/resources/dev/elastic-openapi-codegen-php/src/main/resources/elastic-php-client/header.mustache +++ b/resources/dev/elastic-openapi-codegen-php/src/main/resources/elastic-php-client/header.mustache @@ -1,5 +1,5 @@ /** - * This file is part of the Elastic OpenAPI PHP code generator. + * This file have been generated the Elastic OpenAPI PHP code generator. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. From e241bce0a68944a86184e6949da782a23eb79758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20FOUCRET?= Date: Fri, 26 Jul 2019 06:21:10 +0200 Subject: [PATCH 3/3] Update class header for endpoints. --- .../src/main/resources/elastic-php-client/api.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/dev/elastic-openapi-codegen-php/src/main/resources/elastic-php-client/api.mustache b/resources/dev/elastic-openapi-codegen-php/src/main/resources/elastic-php-client/api.mustache index e98f60e..bb4981d 100644 --- a/resources/dev/elastic-openapi-codegen-php/src/main/resources/elastic-php-client/api.mustache +++ b/resources/dev/elastic-openapi-codegen-php/src/main/resources/elastic-php-client/api.mustache @@ -4,7 +4,7 @@ namespace {{package}}; /** - * Implementation of the {{className}} endpoint. + * Implementation of the {{classname}} endpoint. * * @package {{package}} */