Commit 44e88676 authored by Taylor Otwell's avatar Taylor Otwell

tweaked route finder to recursive search directories.

parent 88276ba7
......@@ -67,9 +67,11 @@ class Finder {
{
$routes = array();
foreach (glob(APP_PATH.'routes/*') as $file)
$iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator(APP_PATH.'routes'), \RecursiveIteratorIterator::SELF_FIRST);
foreach ($iterator as $file)
{
if (filetype($file) == 'file')
if (filetype($file) === 'file')
{
$routes = array_merge(require $file, $routes);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment