Permalink
Browse files

Add deprecated doctag for current methods

  • Loading branch information...
tanuck committed Feb 10, 2015
1 parent e173c29 commit 1cb670bdfa4b4e2dba3a87431f20c5c5aeb039e8
Showing with 2 additions and 0 deletions.
  1. +1 −0 lib/Cake/Controller/Component/SessionComponent.php
  2. +1 −0 lib/Cake/View/Helper/SessionHelper.php
@@ -133,6 +133,7 @@ public function error() {
* @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'));
@@ -126,6 +126,7 @@ public function error() {
* 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;

0 comments on commit 1cb670b

Please sign in to comment.