Skip to content

Commit 49cd879

Browse files
committed
docs: add changelog and update Response::setCookie()
1 parent 6817dc6 commit 49cd879

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

user_guide_src/source/changelogs/v4.1.6.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,22 @@ Enhancements
3737
Changes
3838
*******
3939

40+
- The process of sending cookies has been moved to the ``Response`` class. Now the ``Security`` and ``CookieStore`` class don't send cookies, set them to the Response.
41+
4042
Deprecations
4143
************
4244

45+
Sending Cookies
46+
===============
47+
48+
The process of sending cookies has been moved to the ``Response`` class.
49+
And the following methods are deprecated:
50+
51+
- ``CookieStore::dispatch()``
52+
- ``CookieStore::setRawCookie()``
53+
- ``CookieStore::setCookie()``
54+
- ``Security::sendCookie()``
55+
- ``Security::doSendCookie()``
56+
4357
Bugs Fixed
4458
**********

user_guide_src/source/outgoing/response.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ The methods provided by the parent class that are available are:
396396

397397
.. php:method:: setCookie($name = ''[, $value = ''[, $expire = ''[, $domain = ''[, $path = '/'[, $prefix = ''[, $secure = false[, $httponly = false[, $samesite = null]]]]]]]])
398398
399-
:param mixed $name: Cookie name or an array of parameters
399+
:param array|Cookie|string $name: Cookie name or an array of parameters or an instance of ``CodeIgniter\Cookie\Cookie``
400400
:param string $value: Cookie value
401401
:param int $expire: Cookie expiration time in seconds
402402
:param string $domain: Cookie domain

0 commit comments

Comments
 (0)