FriendsOfSymfony/FOSRestBundle — pull request #145 by richardmiller (2011-10-31 12:38:09+00:00)
Title: Added checking if format template before adding default vars

Using the view listener was throwing an exception to say that an array was required for a templating aware format, whenever there are arguments for the controller action, regardless of whether the format was templating aware or not.