mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
parent
5d19b6ded9
commit
ff570d9daf
1 changed files with 1 additions and 2 deletions
|
@ -463,9 +463,8 @@ class Controller extends Object {
|
||||||
* @throws PrivateActionException, MissingActionException
|
* @throws PrivateActionException, MissingActionException
|
||||||
*/
|
*/
|
||||||
public function invokeAction(CakeRequest $request) {
|
public function invokeAction(CakeRequest $request) {
|
||||||
$reflection = new ReflectionClass($this);
|
|
||||||
try {
|
try {
|
||||||
$method = $reflection->getMethod($request->params['action']);
|
$method = new ReflectionMethod($this, $request->params['action']);
|
||||||
|
|
||||||
if ($this->_isPrivateAction($method, $request)) {
|
if ($this->_isPrivateAction($method, $request)) {
|
||||||
throw new PrivateActionException(array(
|
throw new PrivateActionException(array(
|
||||||
|
|
Loading…
Add table
Reference in a new issue