FriendsOfSymfony/FOSRestBundle — pull request #159 by meandmymonkey (2011-12-12 20:07:49+00:00)
Title: adding support for using non-assoc controller return values with templating formats

Reintroduces functionality from [#90](https://github.com/FriendsOfSymfony/FOSRestBundle/issues/90) that was lost with the switch to JMSSerializer:

It is now possible to use templating formats with all types of controller results, not just assoc arrays. A returned object will be available as the "data" var inside the template. If the controller returns an assoc array, it will be passed as-is.