Skip to content

Commit

Permalink
minor #5821 Minor fixes in the HttpFoundation introduction article (j…
Browse files Browse the repository at this point in the history
…aviereguiluz)

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
  • Loading branch information
xabbuh committed Oct 21, 2015
2 parents 71469ff + e9487d6 commit 506b331
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions components/http_foundation/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ can be accessed via several public properties:

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

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

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

All :class:`Symfony\\Component\\HttpFoundation\\ParameterBag` instances have
methods to retrieve and update its data:
methods to retrieve and update their data:

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

// the query string is '?foo[bar]=bar'
// the query string is '?foo[bar]=bar'

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

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

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

.. _component-foundation-attributes:

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

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

Expand Down

0 comments on commit 506b331

Please sign in to comment.