Removing unnecessary ReflectionClass instance.

Refs #2048
This commit is contained in:
mark_story 2011-10-01 20:43:49 -04:00
parent 5d19b6ded9
commit ff570d9daf

View file

@ -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(