From 1cb670bdfa4b4e2dba3a87431f20c5c5aeb039e8 Mon Sep 17 00:00:00 2001 From: James Tancock Date: Tue, 10 Feb 2015 08:15:01 +0000 Subject: [PATCH] Add deprecated doctag for current methods --- lib/Cake/Controller/Component/SessionComponent.php | 1 + lib/Cake/View/Helper/SessionHelper.php | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/Cake/Controller/Component/SessionComponent.php b/lib/Cake/Controller/Component/SessionComponent.php index 67bc4f426..cb196775a 100644 --- a/lib/Cake/Controller/Component/SessionComponent.php +++ b/lib/Cake/Controller/Component/SessionComponent.php @@ -133,6 +133,7 @@ class SessionComponent extends Component { * @param string $key Message key, default is 'flash' * @return void * @link http://book.cakephp.org/2.0/en/core-libraries/components/sessions.html#creating-notification-messages + * @deprecated 3.0.0 Since 2.7, use the FlashComponent instead. */ public function setFlash($message, $element = 'default', $params = array(), $key = 'flash') { CakeSession::write('Message.' . $key, compact('message', 'element', 'params')); diff --git a/lib/Cake/View/Helper/SessionHelper.php b/lib/Cake/View/Helper/SessionHelper.php index 95e00425e..e1fd1a201 100644 --- a/lib/Cake/View/Helper/SessionHelper.php +++ b/lib/Cake/View/Helper/SessionHelper.php @@ -126,6 +126,7 @@ class SessionHelper extends AppHelper { * Supports the 'params', and 'element' keys that are used in the helper. * @return string * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/session.html#SessionHelper::flash + * @deprecated 3.0.0 Since 2.7, use FlashHelper::render() instead. */ public function flash($key = 'flash', $attrs = array()) { $out = false;