mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Deprecating Cookie::del() Unifying to 'delete' method.
This commit is contained in:
parent
5e8eb83f7d
commit
bd3178b9fc
1 changed files with 8 additions and 1 deletions
|
@ -276,6 +276,13 @@ class CookieComponent extends Object {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated use delete()
|
||||||
|
**/
|
||||||
|
function del($key) {
|
||||||
|
return $this->delete($key);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete a cookie value
|
* Delete a cookie value
|
||||||
*
|
*
|
||||||
|
@ -289,7 +296,7 @@ class CookieComponent extends Object {
|
||||||
* @return void
|
* @return void
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function del($key) {
|
function delete($key) {
|
||||||
if (empty($this->__values)) {
|
if (empty($this->__values)) {
|
||||||
$this->read();
|
$this->read();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue