Browse Source

Removing unnecessary ReflectionClass instance.
Refs #2048

mark_story 14 years ago
parent
commit
ff570d9daf
1 changed files with 1 additions and 2 deletions
  1. 1 2
      lib/Cake/Controller/Controller.php

+ 1 - 2
lib/Cake/Controller/Controller.php

@@ -463,9 +463,8 @@ class Controller extends Object {
  * @throws PrivateActionException, MissingActionException
  */
 	public function invokeAction(CakeRequest $request) {
-		$reflection = new ReflectionClass($this);
 		try {
-			$method = $reflection->getMethod($request->params['action']);
+			$method = new ReflectionMethod($this, $request->params['action']);
 
 			if ($this->_isPrivateAction($method, $request)) {
 				throw new PrivateActionException(array(