From 550249743284b70d4262e6b1520bfaad3c5fd38c Mon Sep 17 00:00:00 2001 From: Phill Sparks Date: Tue, 24 Jan 2012 10:46:29 +0000 Subject: [PATCH] Prevent a bundle from starting itself into a loop --- laravel/bundle.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/laravel/bundle.php b/laravel/bundle.php index 20c7bb6a..8fb05014 100644 --- a/laravel/bundle.php +++ b/laravel/bundle.php @@ -40,6 +40,8 @@ public static function start($bundle) 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 // 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 @@ -53,8 +55,6 @@ public static function start($bundle) // registering the bundle's routes. This is kept separate from the // start script for reverse routing efficiency purposes. static::routes($bundle); - - static::$started[] = strtolower($bundle); } /**