added bundle::disable method.

This commit is contained in:
Taylor Otwell
2012-02-07 15:41:28 -06:00
parent fd1b63ed14
commit e4d55cbc8e

View File

@@ -114,6 +114,17 @@ class Bundle {
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.
*