use symfony http foundation where applicable.

This commit is contained in:
Taylor Otwell
2012-03-28 16:15:21 -05:00
parent de1abef9f0
commit 573725ade7
3 changed files with 73 additions and 163 deletions

View File

@@ -92,14 +92,18 @@ Autoloader::map(array(
| Register The Symfony Components
|--------------------------------------------------------------------------
|
| Laravel's "Artisan" CLI makes use of the Symfony Console component to
| build a wonderful CLI environment that is both robust and testable.
| We'll register the component's namespace here.
| Laravel makes use of the Symfony components where the situation is
| applicable and it is possible to do so. This allows us to focus
| on the parts of the framework that are unique and not re-do
| plumbing code that others have written.
|
*/
Autoloader::namespaces(array(
'Symfony\Component\Console' => path('base').'vendor/Symfony/Component/Console',
'Symfony\Component\Console'
=> path('base').'vendor/Symfony/Component/Console',
'Symfony\Component\HttpFoundation'
=> path('base').'vendor/Symfony/Component/HttpFoundation',
));
/*
@@ -157,4 +161,19 @@ $bundles = require path('app').'bundles'.EXT;
foreach ($bundles as $bundle => $config)
{
Bundle::register($bundle, $config);
}
}
/*
|--------------------------------------------------------------------------
| Register The Laravel Bundles
|--------------------------------------------------------------------------
|
| Finally we will register all of the bundles that have been defined for
| the application. None of them will be started, yet but will be setup
| so that they may be started by the develop at any time.
|
*/
use Symfony\Component\HttpFoundation\Request as FoundationRequest;
Request::$request = FoundationRequest::createFromGlobals();