Skip to content

Commit d52bced

Browse files
committed
Minor reword
1 parent 6bab099 commit d52bced

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

components/http_kernel.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -709,12 +709,15 @@ look like this::
709709
// ...
710710
}
711711

712-
.. _http-kernel-resource-locator:
712+
.. note::
713713

714-
Also, note that by default, if the ``_format`` attribute is not set in your request, the value will be ``html``.
715-
So, if your sub request returns something else than ``html`` (like json for instance) you can set it by setting the ``_format`` attribute on the request::
714+
The default value of the ``_format`` request attribute is ``html``. If your
715+
sub request returns a different format (e.g. ``json``) you can set it by
716+
defining the ``_format`` attribute explicitly on the request::
716717

717-
$request->attributes->set('_format', 'json');
718+
$request->attributes->set('_format', 'json');
719+
720+
.. _http-kernel-resource-locator:
718721

719722
Locating Resources
720723
------------------

0 commit comments

Comments
 (0)