added bundle::disable method.

This commit is contained in:
Taylor Otwell 2012-02-07 15:41:28 -06:00
parent fd1b63ed14
commit e4d55cbc8e
1 changed files with 11 additions and 0 deletions

View File

@ -114,6 +114,17 @@ public static function register($config)
static::$bundles[$config['name']] = array_merge($defaults, $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. * Load a bundle by running it's start-up script.
* *