Hi,

So I have another question:
When to best parse the request header/body?

See https://github.com/FriendsOfSymfony/RestBundle/issues#issue/3

I see two approaches:
1) with a custom RestRequest class that has to be used in the front controller
This seems like the cleanest approach to me. However it does of course require 
changing the front controller. Furthermore if any dependencies are needed for 
the parsing then they would have to be also injected in the front controller. 
Not sure if that is needed though.

2) with a core.request listener
With a listener injecting services wouldn't be a problem and no existing code 
would need to be changed.

I guess there is also a 3) that basically provides both.

regards,
Lukas Kahwe Smith
[email protected]



-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to