Revert "Refactoring Dispatcher::_isPrivate to directly check for controller methods, doing in in the controller could be unnecessary"

This reverts commit c431ddd22c.

Conflicts:

	lib/Cake/Routing/Dispatcher.php
This commit is contained in:
José Lorenzo Rodríguez 2011-02-22 00:13:35 -04:30
parent b1e007f231
commit a9d2078d25
2 changed files with 7 additions and 4 deletions

View file

@ -319,12 +319,15 @@ class Controller extends Object {
}
if (empty($this->uses)) {
$this->modelClass = Inflector::singularize($this->name);
} else {
$this->modelClass = current($this->uses);
}
$this->modelKey = Inflector::underscore($this->modelClass);
$this->Components = new ComponentCollection();
$childMethods = get_class_methods($this);
$parentMethods = get_class_methods('Controller');
$this->methods = array_diff($childMethods, $parentMethods);
if ($request instanceof CakeRequest) {
$this->setRequest($request);
}