@@ -107,7 +107,7 @@ Session attributes
107107* :method: `Symfony\\ Component\\ HttpFoundation\\ Session\\ Session::clear `:
108108 Clear all attributes.
109109
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
111111an array. A few methods exist for "Bag" management:
112112
113113* :method: `Symfony\\ Component\\ HttpFoundation\\ Session\\ Session::registerBag `:
@@ -131,7 +131,7 @@ Session Data Management
131131~~~~~~~~~~~~~~~~~~~~~~~
132132
133133PHP'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
135135OOP paradigm. To help overcome this, Symfony2 uses *session bags * linked to the
136136session to encapsulate a specific dataset of attributes or flash messages.
137137
@@ -230,7 +230,7 @@ Flash messages
230230
231231The purpose of the :class: `Symfony\\ Component\\ HttpFoundation\\ Session\\ Flash\\ FlashBagInterface `
232232is 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
234234after a page redirect. For example, a user submits a form which hits an update
235235controller, and after processing the controller redirects the page to either the
236236updated page or an error page. Flash messages set in the previous page request
0 commit comments