From cd1dfa4f6173b7445632c3bb43d9657c0962b689 Mon Sep 17 00:00:00 2001 From: "Andrew (Andrius) Marcinkevicius" Date: Fri, 30 Jan 2015 09:32:13 +0200 Subject: [PATCH 1/3] Fix typo: These => This | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3 | Fixed tickets | --- components/http_foundation/introduction.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/http_foundation/introduction.rst b/components/http_foundation/introduction.rst index 6475fab2c0a..cdf60f39834 100644 --- a/components/http_foundation/introduction.rst +++ b/components/http_foundation/introduction.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'); From 4476646556ea6e240d87462b00eff1c13acfc256 Mon Sep 17 00:00:00 2001 From: "Andrew (Andrius) Marcinkevicius" Date: Fri, 30 Jan 2015 09:55:10 +0200 Subject: [PATCH 2/3] Fix code example to be more readable | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3 | Fixed tickets | --- components/http_foundation/sessions.rst | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/components/http_foundation/sessions.rst b/components/http_foundation/sessions.rst index 430a83ac23c..5bb702f1d1b 100644 --- a/components/http_foundation/sessions.rst +++ b/components/http_foundation/sessions.rst @@ -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); From e2769ba82b32eb3443fa97d8c32c11ea0bb564de Mon Sep 17 00:00:00 2001 From: "Andrew (Andrius) Marcinkevicius" Date: Fri, 30 Jan 2015 13:03:44 +0200 Subject: [PATCH 3/3] Update sessions.rst --- components/http_foundation/sessions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/http_foundation/sessions.rst b/components/http_foundation/sessions.rst index 5bb702f1d1b..0034963f331 100644 --- a/components/http_foundation/sessions.rst +++ b/components/http_foundation/sessions.rst @@ -194,7 +194,7 @@ store it again:: 'tokens' => array( 'a' => 'a6c1e0b6', 'b' => 'f4a7b1f3', - ) + ), ); So any processing of this might quickly get ugly, even simply adding a token to