|
@@ -46,7 +46,7 @@ class Bundle {
|
|
|
|
|
|
if (file_exists($path = static::path($bundle).'bundle'.EXT))
|
|
if (file_exists($path = static::path($bundle).'bundle'.EXT))
|
|
{
|
|
{
|
|
- require $path;
|
|
+ require_once $path;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -65,11 +65,9 @@ class Bundle {
|
|
*/
|
|
*/
|
|
public static function routes($bundle)
|
|
public static function routes($bundle)
|
|
{
|
|
{
|
|
- if (static::started($bundle)) return;
|
|
|
|
-
|
|
|
|
if (file_exists($path = static::path($bundle).'routes'.EXT))
|
|
if (file_exists($path = static::path($bundle).'routes'.EXT))
|
|
{
|
|
{
|
|
- require $path;
|
|
+ require_once $path;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|