Skip to content

Commit

Permalink
Deprecate CookieComponent and add API links.
Browse files Browse the repository at this point in the history
CookieComponent should have been deprecated when the middleware was
added. Add API links so readers have a better chance of putting together
how everything fits together.
  • Loading branch information
markstory committed May 21, 2017
1 parent f3a747d commit 474ebc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Controller/Component/CookieComponent.php
Expand Up @@ -32,6 +32,7 @@
* - Use hash compatible syntax to read/write/delete values.
*
* @link http://book.cakephp.org/3.0/en/controllers/components/cookie.html
* @deprecated 3.5.0 Use Cake\Http\Middleware\EncryptedCookieMiddleware and Cake\Http\Cookie\Cookie methods instead.
*/
class CookieComponent extends Component
{
Expand Down
2 changes: 2 additions & 0 deletions src/Http/Cookie/Cookie.php
Expand Up @@ -43,6 +43,8 @@
*
* @link https://tools.ietf.org/html/rfc6265
* @link https://en.wikipedia.org/wiki/HTTP_cookie
* @see Cake\Http\Cookie\CookieCollection for working with collections of cookies.
* @see Cake\Http\Response::getCookieCollection() for working with response cookies.
*/
class Cookie implements CookieInterface
{
Expand Down

0 comments on commit 474ebc2

Please sign in to comment.