Skip to content

Commit

Permalink
Add deprecated tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Aug 4, 2014
1 parent 9048eda commit 2a88c7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Controller/Component/SessionComponent.php
Expand Up @@ -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') {
Expand Down
1 change: 1 addition & 0 deletions src/View/Helper/SessionHelper.php
Expand Up @@ -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 = []) {
Expand Down

0 comments on commit 2a88c7f

Please sign in to comment.