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

@@ -131,16 +131,6 @@ unset($input[Request::spoofer]);
Input::$input = $input;
/**
* Start all of the bundles that are specified in the configuration
* array of auto-loaded bundles. This lets the developer have an
* easy way to load bundles for every request.
*/
foreach (Config::get('application.bundles') as $bundle)
{
Bundle::start($bundle);
}
/**
* Load the "application" bundle. Though the application folder is
* not typically considered a bundle, it is started like one and
@@ -149,13 +139,11 @@ foreach (Config::get('application.bundles') as $bundle)
Bundle::start(DEFAULT_BUNDLE);
/**
* If the first segment of the URI corresponds with a bundle we'll
* start that bundle. By convention, bundles handle all URIs which
* begin with their bundle name.
* Start all of the bundles that are specified in the configuration
* array of auto-loaded bundles. This lets the developer have an
* easy way to load bundles for every request.
*/
$bundle = URI::segment(1);
if ( ! is_null($bundle) and Bundle::routable($bundle))
foreach (Config::get('application.bundles') as $bundle)
{
Bundle::start($bundle);
}