mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Adding deprecation flags.
This commit is contained in:
parent
12338a0c16
commit
d5e906f086
1 changed files with 2 additions and 0 deletions
|
@ -160,6 +160,7 @@ class AclComponent extends Component {
|
||||||
* @param string $aco ACO The controlled object identifier.
|
* @param string $aco ACO The controlled object identifier.
|
||||||
* @param string $action Action (defaults to *)
|
* @param string $action Action (defaults to *)
|
||||||
* @return boolean Success
|
* @return boolean Success
|
||||||
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
public function grant($aro, $aco, $action = "*") {
|
public function grant($aro, $aco, $action = "*") {
|
||||||
trigger_error(__('AclComponent::grant() is deprecated, use allow() instead'), E_USER_WARNING);
|
trigger_error(__('AclComponent::grant() is deprecated, use allow() instead'), E_USER_WARNING);
|
||||||
|
@ -173,6 +174,7 @@ class AclComponent extends Component {
|
||||||
* @param string $aco ACO The controlled object identifier.
|
* @param string $aco ACO The controlled object identifier.
|
||||||
* @param string $action Action (defaults to *)
|
* @param string $action Action (defaults to *)
|
||||||
* @return boolean Success
|
* @return boolean Success
|
||||||
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
public function revoke($aro, $aco, $action = "*") {
|
public function revoke($aro, $aco, $action = "*") {
|
||||||
trigger_error(__('AclComponent::revoke() is deprecated, use deny() instead'), E_USER_WARNING);
|
trigger_error(__('AclComponent::revoke() is deprecated, use deny() instead'), E_USER_WARNING);
|
||||||
|
|
Loading…
Add table
Reference in a new issue