diff --git a/RECIPES.md b/RECIPES.md index b8d6f2c2..d6413d51 100644 --- a/RECIPES.md +++ b/RECIPES.md @@ -182,7 +182,7 @@ Additional recipes can be found on the [Main Recipes Repository](https://github. | [friendsofsymfony/elastica-bundle](https://packagist.org/packages/friendsofsymfony/elastica-bundle) | [5.0](friendsofsymfony/elastica-bundle/5.0) | | [friendsofsymfony/jsrouting-bundle](https://packagist.org/packages/friendsofsymfony/jsrouting-bundle) | [2.3](friendsofsymfony/jsrouting-bundle/2.3) | | [friendsofsymfony/oauth-server-bundle](https://packagist.org/packages/friendsofsymfony/oauth-server-bundle) | [1.6](friendsofsymfony/oauth-server-bundle/1.6) | -| [friendsofsymfony/rest-bundle](https://packagist.org/packages/friendsofsymfony/rest-bundle) | [2.2](friendsofsymfony/rest-bundle/2.2) | +| [friendsofsymfony/rest-bundle](https://packagist.org/packages/friendsofsymfony/rest-bundle) | [3.0](friendsofsymfony/rest-bundle/3.0) | | [fsi/files](https://packagist.org/packages/fsi/files) | [1.5](fsi/files/1.5) | | [geosocio/http-serializer-bundle](https://packagist.org/packages/geosocio/http-serializer-bundle) | [2.0](geosocio/http-serializer-bundle/2.0) | | [gesdinet/jwt-refresh-token-bundle](https://packagist.org/packages/gesdinet/jwt-refresh-token-bundle) | [1.0](gesdinet/jwt-refresh-token-bundle/1.0) | diff --git a/archived/friendsofsymfony.rest-bundle/3762cc4e4f2d6faabeca5a151b41c8c791bd96e5.json b/archived/friendsofsymfony.rest-bundle/3762cc4e4f2d6faabeca5a151b41c8c791bd96e5.json new file mode 100644 index 00000000..72baacdb --- /dev/null +++ b/archived/friendsofsymfony.rest-bundle/3762cc4e4f2d6faabeca5a151b41c8c791bd96e5.json @@ -0,0 +1,40 @@ +{ + "manifests": { + "friendsofsymfony/rest-bundle": { + "manifest": { + "bundles": { + "FOS\\RestBundle\\FOSRestBundle": [ + "all" + ] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } + }, + "files": { + "config/packages/fos_rest.yaml": { + "contents": [ + "# 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 ] }", + "" + ], + "executable": false + } + }, + "ref": "3762cc4e4f2d6faabeca5a151b41c8c791bd96e5" + } + } +} diff --git a/friendsofsymfony.rest-bundle.3.0.json b/friendsofsymfony.rest-bundle.3.0.json new file mode 100644 index 00000000..72baacdb --- /dev/null +++ b/friendsofsymfony.rest-bundle.3.0.json @@ -0,0 +1,40 @@ +{ + "manifests": { + "friendsofsymfony/rest-bundle": { + "manifest": { + "bundles": { + "FOS\\RestBundle\\FOSRestBundle": [ + "all" + ] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } + }, + "files": { + "config/packages/fos_rest.yaml": { + "contents": [ + "# 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 ] }", + "" + ], + "executable": false + } + }, + "ref": "3762cc4e4f2d6faabeca5a151b41c8c791bd96e5" + } + } +} diff --git a/index.json b/index.json index 51395a9d..3bf7c549 100644 --- a/index.json +++ b/index.json @@ -561,7 +561,8 @@ "1.6" ], "friendsofsymfony/rest-bundle": [ - "2.2" + "2.2", + "3.0" ], "fsi/files": [ "1.5"