Skip to content

Commit 4436eba

Browse files
kbondOskarStark
andauthored
Apply suggestions from code review
Co-authored-by: Oskar Stark <oskarstark@googlemail.com>
1 parent 8e33246 commit 4436eba

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

components/http_foundation.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,16 +216,17 @@ If the request body is a JSON string, it can be accessed using
216216

217217
$data = $request->toArray();
218218

219-
If the request data could be $_POST data *or* a JSON string, you can use
220-
:method:`Symfony\\Component\\HttpFoundation\\Request::getPayload`
219+
If the request data could be ``$_POST`` data *or* a JSON string, you can use
220+
the :method:`Symfony\\Component\\HttpFoundation\\Request::getPayload` method
221221
which returns an instance of :class:`Symfony\\Component\\HttpFoundation\\InputBag`
222222
wrapping this data::
223223

224224
$data = $request->getPayload();
225225

226226
.. versionadded:: 6.3
227227

228-
The ``Request::getPayload()`` method was introduced in Symfony 6.3.
228+
The :method:`Symfony\\Component\\HttpFoundation\\Request::getPayload`
229+
method was introduced in Symfony 6.3.
229230

230231
Identifying a Request
231232
~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)