From d52bcedf0e974906a51853a96534b624bdfd840a Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 18 Jan 2024 13:11:22 +0100 Subject: [PATCH] Minor reword --- components/http_kernel.rst | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/components/http_kernel.rst b/components/http_kernel.rst index 665ab507f67..abfd5b16163 100644 --- a/components/http_kernel.rst +++ b/components/http_kernel.rst @@ -709,12 +709,15 @@ look like this:: // ... } -.. _http-kernel-resource-locator: +.. note:: -Also, note that by default, if the ``_format`` attribute is not set in your request, the value will be ``html``. -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:: + The default value of the ``_format`` request attribute is ``html``. If your + sub request returns a different format (e.g. ``json``) you can set it by + defining the ``_format`` attribute explicitly on the request:: - $request->attributes->set('_format', 'json'); + $request->attributes->set('_format', 'json'); + +.. _http-kernel-resource-locator: Locating Resources ------------------