Commit 29b98b2a authored by Taylor Otwell's avatar Taylor Otwell

added check for .php in route finder glob.

parent 099a8803
...@@ -77,7 +77,7 @@ class Finder { ...@@ -77,7 +77,7 @@ class Finder {
foreach ($recursiveIterator as $file) foreach ($recursiveIterator as $file)
{ {
if (filetype($file) === 'file') if (filetype($file) === 'file' and strpos($file, EXT) !== false)
{ {
$routes = array_merge(require $file, $routes); $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