From 3541c05ba23f22adb0ac8df2bfc45601fa050fd7 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 18 Jul 2011 23:06:34 -0500 Subject: [PATCH] added comment to route finder. --- system/route/finder.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/route/finder.php b/system/route/finder.php index 4e3ea030..53eaa420 100644 --- a/system/route/finder.php +++ b/system/route/finder.php @@ -69,6 +69,8 @@ private static function load() { $routes = array(); + // Since route files can be nested deep within the route directory, we need to + // recursively spin through the directory to find every file. $directoryIterator = new \RecursiveDirectoryIterator(APP_PATH.'routes'); $recursiveIterator = new \RecursiveIteratorIterator($directoryIterator, \RecursiveIteratorIterator::SELF_FIRST);