@@ -107,7 +107,7 @@ Session attributes
107
107
* :method: `Symfony\\ Component\\ HttpFoundation\\ Session\\ Session::clear `:
108
108
Clear all attributes.
109
109
110
- The attributes are stored internally in an "Bag", a PHP object that acts like
110
+ The attributes are stored internally in a "Bag", a PHP object that acts like
111
111
an array. A few methods exist for "Bag" management:
112
112
113
113
* :method: `Symfony\\ Component\\ HttpFoundation\\ Session\\ Session::registerBag `:
@@ -131,7 +131,7 @@ Session Data Management
131
131
~~~~~~~~~~~~~~~~~~~~~~~
132
132
133
133
PHP's session management requires the use of the ``$_SESSION `` super-global,
134
- however, this interferes somewhat with code testability and encapsulation in a
134
+ however, this interferes somewhat with code testability and encapsulation in an
135
135
OOP paradigm. To help overcome this, Symfony2 uses *session bags * linked to the
136
136
session to encapsulate a specific dataset of attributes or flash messages.
137
137
@@ -230,7 +230,7 @@ Flash messages
230
230
231
231
The purpose of the :class: `Symfony\\ Component\\ HttpFoundation\\ Session\\ Flash\\ FlashBagInterface `
232
232
is to provide a way of setting and retrieving messages on a per session basis.
233
- The usual workflow for flash messages would be set in an request, and displayed
233
+ The usual workflow would be to set flash messages in a request and to display them
234
234
after a page redirect. For example, a user submits a form which hits an update
235
235
controller, and after processing the controller redirects the page to either the
236
236
updated page or an error page. Flash messages set in the previous page request
0 commit comments