mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge pull request #845 from dogmatic69/security-component-cleanup
You cant pass func_get_args() in PHP < 5.3
This commit is contained in:
commit
ec4333de29
1 changed files with 12 additions and 6 deletions
|
@ -246,7 +246,8 @@ class SecurityComponent extends Component {
|
|||
* @link http://book.cakephp.org/2.0/en/core-libraries/components/security-component.html#SecurityComponent::requirePost
|
||||
*/
|
||||
public function requirePost() {
|
||||
$this->_requireMethod('Post', func_get_args());
|
||||
$args = func_get_args();
|
||||
$this->_requireMethod('Post', $args);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -255,7 +256,8 @@ class SecurityComponent extends Component {
|
|||
* @return void
|
||||
*/
|
||||
public function requireGet() {
|
||||
$this->_requireMethod('Get', func_get_args());
|
||||
$args = func_get_args();
|
||||
$this->_requireMethod('Get', $args);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -264,7 +266,8 @@ class SecurityComponent extends Component {
|
|||
* @return void
|
||||
*/
|
||||
public function requirePut() {
|
||||
$this->_requireMethod('Put', func_get_args());
|
||||
$args = func_get_args();
|
||||
$this->_requireMethod('Put', $args);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -273,7 +276,8 @@ class SecurityComponent extends Component {
|
|||
* @return void
|
||||
*/
|
||||
public function requireDelete() {
|
||||
$this->_requireMethod('Delete', func_get_args());
|
||||
$args = func_get_args();
|
||||
$this->_requireMethod('Delete', $args);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -283,7 +287,8 @@ class SecurityComponent extends Component {
|
|||
* @link http://book.cakephp.org/2.0/en/core-libraries/components/security-component.html#SecurityComponent::requireSecure
|
||||
*/
|
||||
public function requireSecure() {
|
||||
$this->_requireMethod('Secure', func_get_args());
|
||||
$args = func_get_args();
|
||||
$this->_requireMethod('Secure', $args);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -293,7 +298,8 @@ class SecurityComponent extends Component {
|
|||
* @link http://book.cakephp.org/2.0/en/core-libraries/components/security-component.html#SecurityComponent::requireAuth
|
||||
*/
|
||||
public function requireAuth() {
|
||||
$this->_requireMethod('Auth', func_get_args());
|
||||
$args = func_get_args();
|
||||
$this->_requireMethod('Auth', $args);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue