Browse files

Removing use of Object::dispatchMethod() in Dispatcher::_invoke(). Th…

…is has a miniscule performance increase as well as makes protected methods not prefixed with '_' inaccessible by url. Fixes #21
  • Loading branch information...
1 parent ad496ce commit 7e2079be3374f51e15a74fa960172fcfc5cd680f @markstory markstory committed Jan 22, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/dispatcher.php
View
2 cake/dispatcher.php
@@ -201,7 +201,7 @@ function _invoke(&$controller, $params) {
'base' => $this->base
)));
}
- $output = $controller->dispatchMethod($params['action'], $params['pass']);
+ $output = call_user_func_array(array(&$controller, $params['action']), $params['pass']);
if ($controller->autoRender) {
$controller->output = $controller->render();

0 comments on commit 7e2079b

Please sign in to comment.