Refactor the route class.

This commit is contained in:
Taylor Otwell 2011-08-08 13:37:39 -05:00
parent d1d4ac1056
commit 9cabf54530
1 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ public function call()
{
$response = isset($this->callback['before']) ? Filter::call($this->callback['before'], array(), true) : null;
if (is_null($response) and ! is_null($handler = $this->handler()))
if (is_null($response) and ! is_null($handler = $this->find_route_function()))
{
$response = call_user_func_array($handler, $this->parameters);
}
@ -87,7 +87,7 @@ public function call()
*
* @return Closure
*/
private function handler()
private function find_route_function()
{
if (isset($this->callback['do'])) return $this->callback['do'];