Adding Todo about moving Cookie setting to CakeResponse.

This commit is contained in:
Mark Story 2011-08-20 17:28:58 -04:00
parent 7276f3357d
commit 58888399f1

View file

@ -398,6 +398,9 @@ class CookieComponent extends Component {
/**
* Object wrapper for setcookie() so it can be mocked in unit tests.
*
* @todo Re-factor setting cookies into CakeResponse. Cookies are part
* of the HTTP response, and should be handled there.
*
* @param string $name Name of the cookie
* @param integer $expire Time the cookie expires in
* @param string $path Path the cookie applies to