improve bundle configuration and registration.

This commit is contained in:
Taylor Otwell
2012-01-26 20:07:02 -06:00
parent 300ab50a84
commit 70082508f5
4 changed files with 20 additions and 5 deletions

View File

@@ -47,7 +47,9 @@ Autoloader::$aliases = Config::get('application.aliases');
*/
$bundles = require BUNDLE_PATH.'bundles'.EXT;
foreach ($bundles as $bundle => $config)
foreach ($bundles as $bundle => $value)
{
Bundle::register($bundle, $config);
if (is_numeric($bundle)) $bundle = $value;
Bundle::register($bundle, $value);
}