added check for .php in route finder glob.
This commit is contained in:
parent
099a880345
commit
29b98b2acb
|
@ -77,7 +77,7 @@ private static function load()
|
||||||
|
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue