Skip to content

Commit 506b331

Browse files
committed
minor #5821 Minor fixes in the HttpFoundation introduction article (javiereguiluz)
This PR was merged into the 2.3 branch. Discussion ---------- Minor fixes in the HttpFoundation introduction article | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | - Commits ------- e9487d6 Minor fixes in the HttpFoundation introduction article
2 parents 71469ff + e9487d6 commit 506b331

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

components/http_foundation/introduction.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ can be accessed via several public properties:
6969

7070
* ``server``: equivalent of ``$_SERVER``;
7171

72-
* ``headers``: mostly equivalent to a sub-set of ``$_SERVER``
72+
* ``headers``: mostly equivalent to a subset of ``$_SERVER``
7373
(``$request->headers->get('User-Agent')``).
7474

7575
Each property is a :class:`Symfony\\Component\\HttpFoundation\\ParameterBag`
@@ -90,7 +90,7 @@ instance (or a sub-class of), which is a data holder class:
9090
* ``headers``: :class:`Symfony\\Component\\HttpFoundation\\HeaderBag`.
9191

9292
All :class:`Symfony\\Component\\HttpFoundation\\ParameterBag` instances have
93-
methods to retrieve and update its data:
93+
methods to retrieve and update their data:
9494

9595
:method:`Symfony\\Component\\HttpFoundation\\ParameterBag::all`
9696
Returns the parameters.
@@ -157,16 +157,16 @@ sometimes, you might want to get the value for the "original" parameter name:
157157
:method:`Symfony\\Component\\HttpFoundation\\Request::get` via the third
158158
argument::
159159

160-
// the query string is '?foo[bar]=bar'
160+
// the query string is '?foo[bar]=bar'
161161

162-
$request->query->get('foo');
163-
// returns array('bar' => 'bar')
162+
$request->query->get('foo');
163+
// returns array('bar' => 'bar')
164164

165-
$request->query->get('foo[bar]');
166-
// returns null
165+
$request->query->get('foo[bar]');
166+
// returns null
167167

168-
$request->query->get('foo[bar]', null, true);
169-
// returns 'bar'
168+
$request->query->get('foo[bar]', null, true);
169+
// returns 'bar'
170170

171171
.. _component-foundation-attributes:
172172

@@ -485,7 +485,7 @@ You can still set the ``Content-Type`` of the sent file, or change its ``Content
485485
.. versionadded:: 2.6
486486
The ``deleteFileAfterSend()`` method was introduced in Symfony 2.6.
487487

488-
It is possible to delete the file after the request is sent with the
488+
It is possible to delete the file after the request is sent with the
489489
:method:`Symfony\\Component\\HttpFoundation\\BinaryFileResponse::deleteFileAfterSend` method.
490490
Please note that this will not work when the ``X-Sendfile`` header is set.
491491

0 commit comments

Comments
 (0)