Skip to content

Commit

Permalink
minor #4943 Fixes for 2.3 branch (ifdattic)
Browse files Browse the repository at this point in the history
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 99d225b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/http_foundation/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
10 changes: 7 additions & 3 deletions components/http_foundation/sessions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand All @@ -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);

Expand Down

0 comments on commit 99d225b

Please sign in to comment.