bundle improvements.

This commit is contained in:
Taylor Otwell
2012-01-26 17:01:17 -06:00
parent 7052c33c37
commit d76cf4ba23
7 changed files with 47 additions and 35 deletions

View File

@@ -147,9 +147,7 @@ Autoloader::$aliases = Config::get('application.aliases');
*/
$bundles = require BUNDLE_PATH.'bundles'.EXT;
foreach ($bundles as $key => $value)
foreach ($bundles as $bundle => $config)
{
$location = (is_array($value)) ? $value['location'] : $value;
Bundle::register($key, $location, array_get($value, 'handles'));
Bundle::register($bundle, $config);
}