From 39eb32ec2718d22f1f185c2bd62da51d47662416 Mon Sep 17 00:00:00 2001 From: Yuriy Belenko Date: Sun, 31 May 2020 18:02:35 +0300 Subject: [PATCH] [php-laravel] Show required PHP version in docs (#6502) * Add required PHP version to readme * Add requried PHP version to @phpdoc --- .../openapi-generator/src/main/resources/php-laravel/README.md | 3 +++ .../src/main/resources/php-laravel/licenseInfo.mustache | 1 + samples/server/petstore/php-laravel/lib/README.md | 3 +++ .../lib/app/Http/Controllers/AnotherFakeController.php | 1 + .../app/Http/Controllers/FakeClassnameTags123Controller.php | 1 + .../php-laravel/lib/app/Http/Controllers/FakeController.php | 1 + .../php-laravel/lib/app/Http/Controllers/PetController.php | 1 + .../php-laravel/lib/app/Http/Controllers/StoreController.php | 1 + .../php-laravel/lib/app/Http/Controllers/UserController.php | 1 + samples/server/petstore/php-laravel/lib/routes/api.php | 1 + samples/server/petstore/php-laravel/lib/routes/channels.php | 1 + samples/server/petstore/php-laravel/lib/routes/console.php | 1 + samples/server/petstore/php-laravel/lib/routes/web.php | 1 + 13 files changed, 17 insertions(+) diff --git a/modules/openapi-generator/src/main/resources/php-laravel/README.md b/modules/openapi-generator/src/main/resources/php-laravel/README.md index 76ceb65d21..607a00a0ad 100644 --- a/modules/openapi-generator/src/main/resources/php-laravel/README.md +++ b/modules/openapi-generator/src/main/resources/php-laravel/README.md @@ -1,5 +1,8 @@ # OpenAPI generated server +## Requirements +* PHP 7.1.3 or newer + ## Overview This server was generated by the [openapi-generator](https://github.com/openapitools/openapi-generator) project. By using the [OpenAPI-Spec](https://github.com/swagger-api/swagger-core/wiki) from a remote server, you can easily generate a server stub. This diff --git a/modules/openapi-generator/src/main/resources/php-laravel/licenseInfo.mustache b/modules/openapi-generator/src/main/resources/php-laravel/licenseInfo.mustache index 63721e9a89..acdb498a67 100644 --- a/modules/openapi-generator/src/main/resources/php-laravel/licenseInfo.mustache +++ b/modules/openapi-generator/src/main/resources/php-laravel/licenseInfo.mustache @@ -1,6 +1,7 @@ /** * {{{appName}}} * {{{appDescription}}} + * PHP version 7.1.3 * * {{#version}}The version of the OpenAPI document: {{{version}}}{{/version}} * {{#infoEmail}}Contact: {{{infoEmail}}}{{/infoEmail}} diff --git a/samples/server/petstore/php-laravel/lib/README.md b/samples/server/petstore/php-laravel/lib/README.md index 76ceb65d21..607a00a0ad 100644 --- a/samples/server/petstore/php-laravel/lib/README.md +++ b/samples/server/petstore/php-laravel/lib/README.md @@ -1,5 +1,8 @@ # OpenAPI generated server +## Requirements +* PHP 7.1.3 or newer + ## Overview This server was generated by the [openapi-generator](https://github.com/openapitools/openapi-generator) project. By using the [OpenAPI-Spec](https://github.com/swagger-api/swagger-core/wiki) from a remote server, you can easily generate a server stub. This diff --git a/samples/server/petstore/php-laravel/lib/app/Http/Controllers/AnotherFakeController.php b/samples/server/petstore/php-laravel/lib/app/Http/Controllers/AnotherFakeController.php index 700d13d11e..5c0f192022 100644 --- a/samples/server/petstore/php-laravel/lib/app/Http/Controllers/AnotherFakeController.php +++ b/samples/server/petstore/php-laravel/lib/app/Http/Controllers/AnotherFakeController.php @@ -3,6 +3,7 @@ /** * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * PHP version 7.1.3 * * The version of the OpenAPI document: 1.0.0 * diff --git a/samples/server/petstore/php-laravel/lib/app/Http/Controllers/FakeClassnameTags123Controller.php b/samples/server/petstore/php-laravel/lib/app/Http/Controllers/FakeClassnameTags123Controller.php index 46ccd6e5fd..b7d0cda253 100644 --- a/samples/server/petstore/php-laravel/lib/app/Http/Controllers/FakeClassnameTags123Controller.php +++ b/samples/server/petstore/php-laravel/lib/app/Http/Controllers/FakeClassnameTags123Controller.php @@ -3,6 +3,7 @@ /** * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * PHP version 7.1.3 * * The version of the OpenAPI document: 1.0.0 * diff --git a/samples/server/petstore/php-laravel/lib/app/Http/Controllers/FakeController.php b/samples/server/petstore/php-laravel/lib/app/Http/Controllers/FakeController.php index d883a0108d..d308d6d157 100644 --- a/samples/server/petstore/php-laravel/lib/app/Http/Controllers/FakeController.php +++ b/samples/server/petstore/php-laravel/lib/app/Http/Controllers/FakeController.php @@ -3,6 +3,7 @@ /** * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * PHP version 7.1.3 * * The version of the OpenAPI document: 1.0.0 * diff --git a/samples/server/petstore/php-laravel/lib/app/Http/Controllers/PetController.php b/samples/server/petstore/php-laravel/lib/app/Http/Controllers/PetController.php index 5fc490b27c..6ce841dc2f 100644 --- a/samples/server/petstore/php-laravel/lib/app/Http/Controllers/PetController.php +++ b/samples/server/petstore/php-laravel/lib/app/Http/Controllers/PetController.php @@ -3,6 +3,7 @@ /** * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * PHP version 7.1.3 * * The version of the OpenAPI document: 1.0.0 * diff --git a/samples/server/petstore/php-laravel/lib/app/Http/Controllers/StoreController.php b/samples/server/petstore/php-laravel/lib/app/Http/Controllers/StoreController.php index 6c7013f5b6..4a6f2e18a8 100644 --- a/samples/server/petstore/php-laravel/lib/app/Http/Controllers/StoreController.php +++ b/samples/server/petstore/php-laravel/lib/app/Http/Controllers/StoreController.php @@ -3,6 +3,7 @@ /** * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * PHP version 7.1.3 * * The version of the OpenAPI document: 1.0.0 * diff --git a/samples/server/petstore/php-laravel/lib/app/Http/Controllers/UserController.php b/samples/server/petstore/php-laravel/lib/app/Http/Controllers/UserController.php index 365502a3be..3477a0b525 100644 --- a/samples/server/petstore/php-laravel/lib/app/Http/Controllers/UserController.php +++ b/samples/server/petstore/php-laravel/lib/app/Http/Controllers/UserController.php @@ -3,6 +3,7 @@ /** * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * PHP version 7.1.3 * * The version of the OpenAPI document: 1.0.0 * diff --git a/samples/server/petstore/php-laravel/lib/routes/api.php b/samples/server/petstore/php-laravel/lib/routes/api.php index 0fd1c22d3e..b67eb068a0 100644 --- a/samples/server/petstore/php-laravel/lib/routes/api.php +++ b/samples/server/petstore/php-laravel/lib/routes/api.php @@ -3,6 +3,7 @@ /** * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * PHP version 7.1.3 * * The version of the OpenAPI document: 1.0.0 * diff --git a/samples/server/petstore/php-laravel/lib/routes/channels.php b/samples/server/petstore/php-laravel/lib/routes/channels.php index ce848a9a1b..a149aa63f0 100644 --- a/samples/server/petstore/php-laravel/lib/routes/channels.php +++ b/samples/server/petstore/php-laravel/lib/routes/channels.php @@ -3,6 +3,7 @@ /** * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * PHP version 7.1.3 * * The version of the OpenAPI document: 1.0.0 * diff --git a/samples/server/petstore/php-laravel/lib/routes/console.php b/samples/server/petstore/php-laravel/lib/routes/console.php index 0ed63f6741..12e2fa86f3 100644 --- a/samples/server/petstore/php-laravel/lib/routes/console.php +++ b/samples/server/petstore/php-laravel/lib/routes/console.php @@ -3,6 +3,7 @@ /** * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * PHP version 7.1.3 * * The version of the OpenAPI document: 1.0.0 * diff --git a/samples/server/petstore/php-laravel/lib/routes/web.php b/samples/server/petstore/php-laravel/lib/routes/web.php index 325aca0792..0fbf681e45 100644 --- a/samples/server/petstore/php-laravel/lib/routes/web.php +++ b/samples/server/petstore/php-laravel/lib/routes/web.php @@ -3,6 +3,7 @@ /** * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * PHP version 7.1.3 * * The version of the OpenAPI document: 1.0.0 *