-
Notifications
You must be signed in to change notification settings - Fork 708
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
[S4 ]View Response Listener - twig error #1844
Comments
andrzepakula
changed the title
View Response Listener - twig error
[S4 ]View Response Listener - twig error
Jan 18, 2018
How did you solve this, i'm getting the same error in my unit tests. |
I had the same, solved it when I added the following configuration under fos_rest : format_listener:
rules:
prefer_extension: false
fallback_format: json |
I had the same issue on SF 4+ and fixed it by configuring the namespaced path in Twig; twig:
paths:
"%kernel.project_dir%/templates": FOSRest |
If you are encountering the same error: do not open URL from a web brower. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi. I am using S4. When I try to use the @view annotation, receives an error : There are no registered paths for namespace "FOSRest". What am I doing wrong ?
`
`
`
fos_rest:
param_fetcher_listener: true
serializer:
serialize_null: false
view:
view_response_listener: 'force'
body_converter:
enabled: true
validate: true
validation_errors_argument: validationErrors
`
The text was updated successfully, but these errors were encountered: