opened up bundles to live anywhere and respond to any URI.'

This commit is contained in:
Taylor Otwell
2012-01-26 14:37:43 -06:00
parent d3d3ffc168
commit 8dfb50c835
7 changed files with 128 additions and 75 deletions

View File

@@ -138,4 +138,18 @@ Autoloader::$mappings = array(
* having to worry about the namespacing. The developer is also
* free to remove aliases when they extend core classes.
*/
Autoloader::$aliases = Config::get('application.aliases');
Autoloader::$aliases = Config::get('application.aliases');
/**
* Register all of the bundles that are defined in the bundle info
* file within the bundles directory. This informs the framework
* where the bundle lives and which URIs it responds to.
*/
$bundles = require BUNDLE_PATH.'bundles'.EXT;
foreach ($bundles as $key => $value)
{
$handles = array_get($value, 'handles');
Bundle::register($key, $value['location'], $handles);
}