Ver código fonte

Updated UPDATE.md

Francis Besset 14 anos atrás
pai
commit
64e92633aa
1 arquivos alterados com 13 adições e 0 exclusões
  1. 13 0
      UPDATE.md

+ 13 - 0
UPDATE.md

@@ -9,6 +9,19 @@ timeline closely anyway.
 RC4 to RC5
 ----------
 
+* 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`)))
+
 * Removed the guesser for the Choice constraint as the constraint only knows
   about the valid keys, and not their values.