added bundle::disable method.
This commit is contained in:
parent
fd1b63ed14
commit
e4d55cbc8e
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue