Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new configuration of fosrestbundle #2

Open
adnoh opened this issue Mar 28, 2014 · 0 comments
Open

new configuration of fosrestbundle #2

adnoh opened this issue Mar 28, 2014 · 0 comments

Comments

@adnoh
Copy link

adnoh commented Mar 28, 2014

it seems I'm using a different version of fosrestbundle.
in newer bundles the config.yml part should read:
format_listener:
rules:
# setting fallback_format to json means that instead of considering
# the next rule in case of a priority mismatch, json will be used
-
path: './api/.'
host: '.*'
priorities: ['json']
fallback_format: json
prefer_extension: false
routing_loader:
default_format: json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant