From 0883fed86cafb3284de4d58f63eae460880ad93d Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 13 Jul 2011 16:40:15 +0200 Subject: [PATCH] tweaked UPDATE file --- UPDATE.md | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/UPDATE.md b/UPDATE.md index 54c56907ff..2ab902fb7e 100644 --- a/UPDATE.md +++ b/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. +* Cookies access from `HeaderBag` has been removed. Accessing Request cookies + must be done via `Request::$cookies``. -* It is not possible to know if a cookie is present or get a cookie in ResponseHeaderBag - because getCookie() and hasCookie() methods were removed. +* `ResponseHeaderBag::getCookie()` and `ResponseHeaderBag::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`))) +* 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.