Browse Source

Adding Todo about moving Cookie setting to CakeResponse.

Mark Story 14 years ago
parent
commit
58888399f1
1 changed files with 3 additions and 0 deletions
  1. 3 0
      lib/Cake/Controller/Component/CookieComponent.php

+ 3 - 0
lib/Cake/Controller/Component/CookieComponent.php

@@ -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