Skip to content

Commit

Permalink
added bundle::disable method.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 7, 2012
1 parent fd1b63e commit e4d55cb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions laravel/bundle.php
Expand Up @@ -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.
*
Expand Down

0 comments on commit e4d55cb

Please sign in to comment.