Commit 521e40f4 authored by Taylor Otwell's avatar Taylor Otwell

working on core.

parent 8fc48f7c
......@@ -46,17 +46,25 @@ Autoloader::$aliases = Config::get('application.aliases');
Autoloader::namespaces(array('Laravel' => path('sys')));
/**
* 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.
* Grab the bundle manifest for the application. This contains an
* array of all of the installed bundles, plus information about
* each of them. If it's not cached, we'll detect them and then
* cache it to save time later.
*/
$bundles = require path('bundle').'bundles'.EXT;
foreach ($bundles as $bundle => $value)
$bundles = Cache::remember('laravel.bundle.manifest', function()
{
if (is_numeric($bundle)) $bundle = $value;
return Bundle::detect();
}, Config::get('application.bundle.cache'));
Bundle::register($bundle, $value);
/**
* Register all of the bundles that are defined in the main bundle
* manifest. This informs the framework where the bundle lives
* and which URIs it can respnod to.
*/
foreach ($bundles as $bundle)
{
Bundle::register($bundle);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment