diff --git a/friendsofsymfony/rest-bundle/2.2/etc/packages/fos_rest.yaml b/friendsofsymfony/rest-bundle/2.2/etc/packages/fos_rest.yaml index 3736fa8c..0043765f 100644 --- a/friendsofsymfony/rest-bundle/2.2/etc/packages/fos_rest.yaml +++ b/friendsofsymfony/rest-bundle/2.2/etc/packages/fos_rest.yaml @@ -1,70 +1,20 @@ +# Read the documentation: https://symfony.com/doc/master/bundles/FOSRestBundle/index.html fos_rest: - disable_csrf_role: null -# access_denied_listener: +# Uncomment to activate features # -# # Prototype -# name: ~ -# unauthorized_challenge: null -# param_fetcher_listener: false -# cache_dir: '%kernel.cache_dir%/fos_rest' -# allowed_methods_listener: false -# routing_loader: -# default_format: null -# include_format: true -# body_converter: -# enabled: false -# validate: false -# validation_errors_argument: validationErrors -# service: -# router: router -# templating: templating -# serializer: null -# view_handler: fos_rest.view_handler.default -# exception_handler: fos_rest.view.exception_wrapper_handler -# inflector: fos_rest.inflector.doctrine -# validator: validator -# serializer: -# version: null -# groups: [] -# serialize_null: false +# param_fetcher_listener: true +# allowed_methods_listener: true +# routing_loader: true # view: -# default_engine: twig -# force_redirects: -# -# # Prototype -# name: ~ -# mime_types: -# -# # Prototype -# name: ~ -# formats: -# -# # Prototype -# name: ~ -# templating_formats: -# -# # Prototype -# name: ~ -# view_response_listener: false -# failed_validation: 400 -# empty_content: 204 -# exception_wrapper_handler: null -# serialize_null: false -# jsonp_handler: -# callback_param: callback -# callback_filter: '/(^[a-z0-9_]+$)|(^YUI\.Env\.JSONP\._[0-9]+$)/i' -# mime_type: application/javascript+jsonp +# view_response_listener: true # exception: -# enabled: false -# exception_controller: null # codes: -# -# # Prototype -# name: ~ +# App\Exception\MyException: 403 # messages: -# -# # Prototype -# name: ~ +# App\Exception\MyException: Forbidden area. +# format_listener: +# rules: +# - { path: ^/api, prefer_extension: true, fallback_format: json, priorities: [ json, html ] } # body_listener: # default_format: null # throw_exception_on_unsupported_content_type: false @@ -75,21 +25,3 @@ fos_rest: # array_normalizer: # service: null # forms: false -# format_listener: -# rules: -# -# # URL path info -# path: null -# -# # URL host name -# host: null -# -# # Method for URL -# methods: null -# stop: false -# prefer_extension: true -# fallback_format: html -# exception_fallback_format: null -# priorities: [] -# media_type: -# version_regex: '/(v|version)=(?P[0-9\.]+)/'