meandmymonkey/FOSRestBundle — comment on commit 0ca78cc20726e4da130f5b4b4eb16d1dfca2bc1f
File: EventListener/ViewResponseListener.php line 97
By lsmith77:

from the README:
"The ``@View()`` and ``@Template()`` annotations behave essentially the same with a minor
difference. When ``view_response_listener`` is set to ``true`` instead of the default ``force``
and ``@View()`` is not used, then rendering will be delegated to SensioFrameworkBundle."

This option mainly exists to handle people who have some Bundles that rely on the listener in SensioFrameworkExtra Bundle that for some reason should not go through the FOSRestBundle View layer. By disabling "force", ``@Template`` will use SensioFrameworkExtra.