From 3080481d477d8f84ccaa48c34507e32c73f3c46b Mon Sep 17 00:00:00 2001 From: Dieter Beck Date: Mon, 13 Mar 2023 20:25:56 +0100 Subject: [PATCH] Enabling the routing load is not supported anymore in rest-bundle v3 (#1493) --- .../rest-bundle/3.0/config/packages/fos_rest.yaml | 15 +++++++++++++++ friendsofsymfony/rest-bundle/3.0/manifest.json | 8 ++++++++ 2 files changed, 23 insertions(+) create mode 100644 friendsofsymfony/rest-bundle/3.0/config/packages/fos_rest.yaml create mode 100644 friendsofsymfony/rest-bundle/3.0/manifest.json diff --git a/friendsofsymfony/rest-bundle/3.0/config/packages/fos_rest.yaml b/friendsofsymfony/rest-bundle/3.0/config/packages/fos_rest.yaml new file mode 100644 index 00000000..f4e7eb66 --- /dev/null +++ b/friendsofsymfony/rest-bundle/3.0/config/packages/fos_rest.yaml @@ -0,0 +1,15 @@ +# Read the documentation: https://fosrestbundle.readthedocs.io/en/3.x/ +fos_rest: +# param_fetcher_listener: true +# allowed_methods_listener: true + routing_loader: false +# view: +# view_response_listener: true +# exception: +# codes: +# App\Exception\MyException: 403 +# messages: +# App\Exception\MyException: Forbidden area. +# format_listener: +# rules: +# - { path: ^/api, prefer_extension: true, fallback_format: json, priorities: [ json, html ] } diff --git a/friendsofsymfony/rest-bundle/3.0/manifest.json b/friendsofsymfony/rest-bundle/3.0/manifest.json new file mode 100644 index 00000000..6cb4f936 --- /dev/null +++ b/friendsofsymfony/rest-bundle/3.0/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "FOS\\RestBundle\\FOSRestBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +}