Permalink
Browse files

minor #4943 Fixes for 2.3 branch (ifdattic)

This PR was merged into the 2.3 branch.

Discussion
----------

Fixes for 2.3 branch

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.3
| Fixed tickets |

Commits
-------

e2769ba Update sessions.rst
4476646 Fix code example to be more readable
cd1dfa4 Fix typo: These => This
  • Loading branch information...
wouterj committed Jan 31, 2015
2 parents 137ba72 + e2769ba commit 99d225b525346ba7bc814086ab638e6b6b02a4ff
Showing with 8 additions and 4 deletions.
  1. +1 −1 components/http_foundation/introduction.rst
  2. +7 −3 components/http_foundation/sessions.rst
@@ -297,7 +297,7 @@ code, and an array of HTTP headers::
array('content-type' => 'text/html')
);
These information can also be manipulated after the Response object creation::
This information can also be manipulated after the Response object creation::
$response->setContent('Hello World');
@@ -190,8 +190,12 @@ data is an array, for example a set of tokens. In this case, managing the array
becomes a burden because you have to retrieve the array then process it and
store it again::
$tokens = array('tokens' => array('a' => 'a6c1e0b6',
'b' => 'f4a7b1f3'));
$tokens = array(
'tokens' => array(
'a' => 'a6c1e0b6',
'b' => 'f4a7b1f3',
),
);
So any processing of this might quickly get ugly, even simply adding a token to
the array::
@@ -201,7 +205,7 @@ the array::
$session->set('tokens', $tokens);
With structured namespacing, the key can be translated to the array
structure like this using a namespace character (defaults to `/`)::
structure like this using a namespace character (defaults to ``/``)::
$session->set('tokens/c', $value);

0 comments on commit 99d225b

Please sign in to comment.