From e4d55cbc8ebc0d18a1071ca664340da386deccda Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 7 Feb 2012 15:41:28 -0600 Subject: [PATCH] added bundle::disable method. --- laravel/bundle.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/laravel/bundle.php b/laravel/bundle.php index db21cead..57911ed8 100644 --- a/laravel/bundle.php +++ b/laravel/bundle.php @@ -114,6 +114,17 @@ public static function register($config) static::$bundles[$config['name']] = array_merge($defaults, $config); } + /** + * Disable a bundle for the current request. + * + * @param string $bundle + * @return void + */ + public static function disable($bundle) + { + unset(static::$bundles[$bundle]); + } + /** * Load a bundle by running it's start-up script. *