From 44d14df331417551ecc2d2eacaeaf2b098f5e5ae Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 11 Jul 2011 09:17:30 -0700 Subject: [PATCH] Added note to Route\Finder. --- system/route/finder.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system/route/finder.php b/system/route/finder.php index fb997e5c..f04c1d0c 100644 --- a/system/route/finder.php +++ b/system/route/finder.php @@ -24,6 +24,9 @@ class Finder { */ public static function find($name) { + // This class maintains its own list of routes because the router only loads routes that + // are applicable to the current request URI. But, this class obviously needs access + // to all of the routes, not just the ones applicable to the request URI. if (is_null(static::$routes)) { static::$routes = (is_dir(APP_PATH.'routes')) ? static::load() : require APP_PATH.'routes'.EXT;