From b51f6c914c065870d759e7ed2e3217cc15bebe2a Mon Sep 17 00:00:00 2001 From: neznaika0 Date: Mon, 13 Jan 2025 00:22:48 +0300 Subject: [PATCH] docs: Update changelog, userguide --- user_guide_src/source/changelogs/v4.6.0.rst | 5 +++-- user_guide_src/source/libraries/cookies.rst | 8 +++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/user_guide_src/source/changelogs/v4.6.0.rst b/user_guide_src/source/changelogs/v4.6.0.rst index f965e9fab737..c9a72bf5dace 100644 --- a/user_guide_src/source/changelogs/v4.6.0.rst +++ b/user_guide_src/source/changelogs/v4.6.0.rst @@ -199,8 +199,9 @@ Removed Deprecated Items ``CodeIgniter\Test\TestLogger::cleanup()`` have been removed. Use the ``clean_path()`` function instead. - **Router:** The deprecated ``CodeIgniter\Router\Exceptions\RedirectException`` has been removed. Use ``CodeIgniter\HTTP\Exceptions\RedirectException`` instead. -- **Security:** ``Config\Security::$samesite`` has been removed. Use ``Config\Cookie::$samesite`` instead. -- **Cookie:** Methods ``dispatch()``, ``setRawCookie()``, ``setCookie()`` in ``CodeIgniter\Cookie\CookieStore`` has been removed. They are now part of ``CodeIgniter\HTTP\ResponseTrait``. +- **Security:** The deprecated property ``Config\Security::$samesite`` has been removed. Use ``Config\Cookie::$samesite`` instead. +- **Cookie:** The deprecated methods: ``dispatch()``, ``setRawCookie()``, ``setCookie()`` in ``CodeIgniter\Cookie\CookieStore`` has been removed. They are now part of ``CodeIgniter\HTTP\ResponseTrait``. +- **Cookie:** The deprecated ``CodeIgniter\Cookie\Cookie::withNeverExpiring()`` has been removed. ************ Enhancements diff --git a/user_guide_src/source/libraries/cookies.rst b/user_guide_src/source/libraries/cookies.rst index ae09cb7c685d..00239b0911f7 100644 --- a/user_guide_src/source/libraries/cookies.rst +++ b/user_guide_src/source/libraries/cookies.rst @@ -228,7 +228,7 @@ the instance with the modified instance. Dispatching Cookies in Store ============================ -.. important:: This method is deprecated since 4.1.6 and removed in 4.6.0. +.. important:: This method was deprecated as of version 4.1.6 and was removed in 4.6.0. More often than not, you do not need to concern yourself in manually sending cookies. CodeIgniter will do this for you. However, if you really need to manually send cookies, you can use the ``dispatch`` method. Just like @@ -367,9 +367,7 @@ Class Reference .. php:method:: withNeverExpiring() - .. deprecated:: 4.2.6 - - .. important:: This method is deprecated. It will be removed in future releases. + .. important:: This method was deprecated as of version 4.2.6 and was removed in 4.6.0. :param string $name: :rtype: ``Cookie`` @@ -482,7 +480,7 @@ Class Reference .. php:method:: dispatch(): void - .. important:: This method is deprecated since 4.1.6 and removed in 4.6.0. + .. important:: This method was deprecated as of version 4.1.6 and was removed in 4.6.0. :rtype: void