Hey, that's also what I need. I made it work in sf1.4 but it was only
hacked together. As far as I see such functionally is also not
prebuilt in sf2.
Thats a pity because its a regular use case.
I imagine a custom route which supports to specify all available
formats and then returns the most
With symfony 1.x you can easily get access to ALL request headers in your
controller actions. Using this, you can also alter the response headers as
well as the content you respond with by reading what the request header is.
If you wish to do this across an entire application you can also pre or