Skip to content

Instantly share code, notes, and snippets.

@dlip
Created June 5, 2013 08:41
Show Gist options
  • Save dlip/5712522 to your computer and use it in GitHub Desktop.
Save dlip/5712522 to your computer and use it in GitHub Desktop.
symfony fos_rest config
fos_rest:
param_fetcher_listener: true
view:
view_response_listener: true
failed_validation: HTTP_BAD_REQUEST
default_engine: php
formats:
json: true
format_listener:
prefer_extension: true
body_listener:
decoders:
json: fos_rest.decoder.json
sensio_framework_extra:
view:
annotations: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment