working on core.
This commit is contained in:
parent
8fc48f7c7e
commit
521e40f4d5
|
@ -46,17 +46,25 @@
|
||||||
Autoloader::namespaces(array('Laravel' => path('sys')));
|
Autoloader::namespaces(array('Laravel' => path('sys')));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register all of the bundles that are defined in the bundle info
|
* Grab the bundle manifest for the application. This contains an
|
||||||
* file within the bundles directory. This informs the framework
|
* array of all of the installed bundles, plus information about
|
||||||
* where the bundle lives and which URIs it responds to.
|
* 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;
|
$bundles = Cache::remember('laravel.bundle.manifest', function()
|
||||||
|
|
||||||
foreach ($bundles as $bundle => $value)
|
|
||||||
{
|
{
|
||||||
if (is_numeric($bundle)) $bundle = $value;
|
return Bundle::detect();
|
||||||
|
|
||||||
Bundle::register($bundle, $value);
|
}, Config::get('application.bundle.cache'));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue