Add comment as to why we define GLOB_BRACE as 0

This commit is contained in:
James Brooks 2017-06-24 18:44:03 +01:00
parent 1319788107
commit 20baf4288b

View File

@ -89,6 +89,8 @@ class RouteServiceProvider extends ServiceProvider
$router->group(['namespace' => $this->namespace, 'as' => 'core::'], function (Router $router) {
$path = app_path('Http/Routes');
// GLOB_BRACE is defined as 0, check the source!
// https://github.com/php/php-src/blob/31e4afe3c3654f9c5ab2eafa3a02c62d41c58b47/ext/standard/dir.c#L154-L158
$globBrace = defined('GLOB_BRACE') ? GLOB_BRACE : 0;
$globFlag = $globBrace;