Commit a4acb1c0 by Taylor Otwell

require routes as many times as necessary.

parent 37c06a50
...@@ -86,7 +86,7 @@ class Bundle { ...@@ -86,7 +86,7 @@ class Bundle {
// dependent bundles so that they are available. // dependent bundles so that they are available.
if (file_exists($path = static::path($bundle).'bundle'.EXT)) 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 // Each bundle may also have a "routes" file which is responsible for
...@@ -109,7 +109,7 @@ class Bundle { ...@@ -109,7 +109,7 @@ class Bundle {
{ {
if (file_exists($path = static::path($bundle).'routes'.EXT)) if (file_exists($path = static::path($bundle).'routes'.EXT))
{ {
require_once $path; require $path;
} }
} }
......
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