opened up bundles to live anywhere and respond to any URI.'
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user