From d5b23167be3410d7b5b1f1a9b17b3f658da17302 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Fri, 4 Aug 2023 13:39:55 +0200 Subject: [PATCH] [api-platform/core] prevent a deprecation warning and sync with upstream --- api-platform/core/3.1/config/packages/api_platform.yaml | 0 api-platform/core/3.1/config/routes/api_platform.yaml | 4 ++++ api-platform/core/3.1/manifest.json | 9 +++++++++ api-platform/core/3.1/post-install.txt | 8 ++++++++ api-platform/core/3.1/src/ApiResource/.gitignore | 0 5 files changed, 21 insertions(+) create mode 100644 api-platform/core/3.1/config/packages/api_platform.yaml create mode 100644 api-platform/core/3.1/config/routes/api_platform.yaml create mode 100644 api-platform/core/3.1/manifest.json create mode 100644 api-platform/core/3.1/post-install.txt create mode 100644 api-platform/core/3.1/src/ApiResource/.gitignore diff --git a/api-platform/core/3.1/config/packages/api_platform.yaml b/api-platform/core/3.1/config/packages/api_platform.yaml new file mode 100644 index 000000000..e69de29bb diff --git a/api-platform/core/3.1/config/routes/api_platform.yaml b/api-platform/core/3.1/config/routes/api_platform.yaml new file mode 100644 index 000000000..38f11cba8 --- /dev/null +++ b/api-platform/core/3.1/config/routes/api_platform.yaml @@ -0,0 +1,4 @@ +api_platform: + resource: . + type: api_platform + prefix: /api diff --git a/api-platform/core/3.1/manifest.json b/api-platform/core/3.1/manifest.json new file mode 100644 index 000000000..af1645232 --- /dev/null +++ b/api-platform/core/3.1/manifest.json @@ -0,0 +1,9 @@ +{ + "bundles": { + "ApiPlatform\\Symfony\\Bundle\\ApiPlatformBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/", + "src/": "%SRC_DIR%/" + } +} diff --git a/api-platform/core/3.1/post-install.txt b/api-platform/core/3.1/post-install.txt new file mode 100644 index 000000000..5cfe0951e --- /dev/null +++ b/api-platform/core/3.1/post-install.txt @@ -0,0 +1,8 @@ + * Your API is almost ready: + 1. Create your first API resource in src/ApiResource; + 2. Go to /api to browse your API + + * To enable the GraphQL support, run composer require webonyx/graphql-php, + then browse /api/graphql. + + * Read the documentation at https://api-platform.com/docs diff --git a/api-platform/core/3.1/src/ApiResource/.gitignore b/api-platform/core/3.1/src/ApiResource/.gitignore new file mode 100644 index 000000000..e69de29bb