diff --git a/src/Controller/Component/SessionComponent.php b/src/Controller/Component/SessionComponent.php index 9ac264a4860..4387cfedbd8 100644 --- a/src/Controller/Component/SessionComponent.php +++ b/src/Controller/Component/SessionComponent.php @@ -117,6 +117,7 @@ public function check($name) { * @param array $params Parameters to be sent to layout as view variables * @param string $key Message key, default is 'flash' * @return void + * @deprecated 3.0 Use FlashComponent::set() instead. * @link http://book.cakephp.org/2.0/en/core-libraries/components/sessions.html#creating-notification-messages */ public function setFlash($message, $element = null, array $params = array(), $key = 'flash') { diff --git a/src/View/Helper/SessionHelper.php b/src/View/Helper/SessionHelper.php index dcd1d886762..547dca08924 100644 --- a/src/View/Helper/SessionHelper.php +++ b/src/View/Helper/SessionHelper.php @@ -111,6 +111,7 @@ public function check($name) { * @param array $attrs Additional attributes to use for the creation of this flash message. * Supports the 'params', and 'element' keys that are used in the helper. * @return string + * @deprecated 3.0 Use FlashHelper::render() instead. * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/session.html#SessionHelper::flash */ public function flash($key = 'flash', $attrs = []) {