8000 Improved the Templating formats article by wouterj · Pull Request #7800 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Improved the Templating formats article #7800

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 12, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Mentioned FOSRestBundle's content negotiation
  • Loading branch information
wouterj committed Apr 15, 2017
commit dfe9d117655212f2ae58b3503f1b86e79d74bfcb
9 changes: 9 additions & 0 deletions templating/formats.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,12 @@ format:
.. seealso::

For more information, see this :ref:`Advanced Routing Example <advanced-routing-example>`.

.. tip::

When building APIs, using file name extensions often isn't the best
solution. The FOSRestBundle provides a request listener that uses content
negotiation. For more information, check out the bundle's `Request Format Listener`_
documentation.

.. _Request Format Listener: http://symfony.com/doc/current/bundles/FOSRestBundle/3-listener-support.html#format-listener
0