From 83ace2de68f3067935caaac6f7a7614237112ef5 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sun, 31 Jul 2011 13:14:39 -0500 Subject: [PATCH] moved routing classes into system namespace. --- public/index.php | 4 ++-- system/route.php | 4 ++-- system/{route/filter.php => route_filter.php} | 4 ++-- system/{route/finder.php => route_finder.php} | 4 ++-- system/url.php | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) rename system/{route/filter.php => route_filter.php} (94%) rename system/{route/finder.php => route_finder.php} (97%) diff --git a/public/index.php b/public/index.php index caf0a4cc..e3d175eb 100644 --- a/public/index.php +++ b/public/index.php @@ -138,7 +138,7 @@ // -------------------------------------------------------------- // Execute the global "before" filter. // -------------------------------------------------------------- -$response = System\Route\Filter::call('before', array(), true); +$response = System\Route_Filter::call('before', array(), true); // ---------------------------------------------------------- // Execute the route function. @@ -157,7 +157,7 @@ // ---------------------------------------------------------- // Execute the global "after" filter. // ---------------------------------------------------------- -System\Route\Filter::call('after', array($response)); +System\Route_Filter::call('after', array($response)); // ---------------------------------------------------------- // Stringify the response. diff --git a/system/route.php b/system/route.php index 62ce1cce..f078e848 100644 --- a/system/route.php +++ b/system/route.php @@ -55,7 +55,7 @@ public function call() } elseif (is_array($this->callback)) { - $response = isset($this->callback['before']) ? Route\Filter::call($this->callback['before'], array(), true) : null; + $response = isset($this->callback['before']) ? Route_Filter::call($this->callback['before'], array(), true) : null; if (is_null($response) and isset($this->callback['do'])) { @@ -67,7 +67,7 @@ public function call() if (is_array($this->callback) and isset($this->callback['after'])) { - Route\Filter::call($this->callback['after'], array($response)); + Route_Filter::call($this->callback['after'], array($response)); } return $response; diff --git a/system/route/filter.php b/system/route_filter.php similarity index 94% rename from system/route/filter.php rename to system/route_filter.php index 2118595e..5fd9e10c 100644 --- a/system/route/filter.php +++ b/system/route_filter.php @@ -1,6 +1,6 @@ -