From 9cabf545306eb33c941d33f9a2ff428ef44dc41b Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 8 Aug 2011 13:37:39 -0500 Subject: [PATCH] Refactor the route class. --- system/routing/route.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/routing/route.php b/system/routing/route.php index 8b88196f..5e409476 100644 --- a/system/routing/route.php +++ b/system/routing/route.php @@ -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'];