Przeglądaj źródła

tweaked UPDATE file

Fabien Potencier 14 lat temu
rodzic
commit
0883fed86c
1 zmienionych plików z 18 dodań i 12 usunięć
  1. 18 12
      UPDATE.md

+ 18 - 12
UPDATE.md

@@ -13,18 +13,24 @@ RC4 to RC5
   `Symfony\Component\Security\Core\User\EntityUserProvider` to
   `Symfony\Bridge\Doctrine\Security\User\EntityUserProvider`.
 
-* Moved cookies management of HeaderBag in ResponseHeaderBag of the HttpFoundation.
-  To access a cookie in Request instance, please use Request::$cookies public attribute.
-
-* It is not possible to know if a cookie is present or get a cookie in ResponseHeaderBag
-  because getCookie() and hasCookie() methods were removed.
-
-* The method `ResponseHeaderBag::getCookie()` accepts an argument for the return format,
-  the possible values are `ResponseHeaderBag::COOKIES_FLAT` (default value) or `ResponseHeaderBag::COOKIES_ARRAY`
-    * ResponseHeaderBag::COOKIES_FLAT return a simple array
-        * array(0 => `a cookie instance`, 1 => `another cookie instance`)
-    * ResponseHeaderBag::COOKIES_ARRAY return a multidimensional array
-        * array(`the domain` => array(`the path` => array(`the cookie name` => `a cookie instance`)))
+* Cookies access from `HeaderBag` has been removed. Accessing Request cookies
+  must be done via `Request::$cookies``.
+
+* `ResponseHeaderBag::getCookie()` and `ResponseHeaderBag::hasCookie()`
+  methods were removed.
+
+* The method `ResponseHeaderBag::getCookie()` now supports an argument for the
+  returned format (possible values are `ResponseHeaderBag::COOKIES_FLAT`
+  (default value) or `ResponseHeaderBag::COOKIES_ARRAY`).
+
+    * `ResponseHeaderBag::COOKIES_FLAT` returns a simple array (the array keys
+      are not cookie names anymore):
+
+        * array(0 => `a Cookie instance`, 1 => `another Cookie instance`)
+
+    * `ResponseHeaderBag::COOKIES_ARRAY` returns a multi-dimensional array:
+
+        * array(`the domain` => array(`the path` => array(`the cookie name` => `a Cookie instance`)))
 
 * Removed the guesser for the Choice constraint as the constraint only knows
   about the valid keys, and not their values.