Prevent a bundle from starting itself into a loop
This commit is contained in:
@@ -40,6 +40,8 @@ class Bundle {
|
|||||||
throw new \Exception("Bundle [$bundle] has not been installed.");
|
throw new \Exception("Bundle [$bundle] has not been installed.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static::$started[] = strtolower($bundle);
|
||||||
|
|
||||||
// Each bundle may have a "start" script which is responsible for preparing
|
// Each bundle may have a "start" script which is responsible for preparing
|
||||||
// the bundle for use by the application. The start script may register any
|
// the bundle for use by the application. The start script may register any
|
||||||
// classes the bundle uses with the auto-loader, or perhaps will start any
|
// classes the bundle uses with the auto-loader, or perhaps will start any
|
||||||
@@ -53,8 +55,6 @@ class Bundle {
|
|||||||
// registering the bundle's routes. This is kept separate from the
|
// registering the bundle's routes. This is kept separate from the
|
||||||
// start script for reverse routing efficiency purposes.
|
// start script for reverse routing efficiency purposes.
|
||||||
static::routes($bundle);
|
static::routes($bundle);
|
||||||
|
|
||||||
static::$started[] = strtolower($bundle);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user