added comment to route finder.

This commit is contained in:
Taylor Otwell 2011-07-18 23:06:34 -05:00
parent b6feff375b
commit 3541c05ba2
1 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,8 @@ private static function load()
{ {
$routes = array(); $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'); $directoryIterator = new \RecursiveDirectoryIterator(APP_PATH.'routes');
$recursiveIterator = new \RecursiveIteratorIterator($directoryIterator, \RecursiveIteratorIterator::SELF_FIRST); $recursiveIterator = new \RecursiveIteratorIterator($directoryIterator, \RecursiveIteratorIterator::SELF_FIRST);