require routes as many times as necessary.
This commit is contained in:
parent
37c06a5006
commit
a4acb1c0fb
|
@ -86,7 +86,7 @@ public static function start($bundle)
|
|||
// dependent bundles so that they are available.
|
||||
if (file_exists($path = static::path($bundle).'bundle'.EXT))
|
||||
{
|
||||
require_once $path;
|
||||
require $path;
|
||||
}
|
||||
|
||||
// Each bundle may also have a "routes" file which is responsible for
|
||||
|
@ -109,7 +109,7 @@ public static function routes($bundle)
|
|||
{
|
||||
if (file_exists($path = static::path($bundle).'routes'.EXT))
|
||||
{
|
||||
require_once $path;
|
||||
require $path;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue