use symfony http foundation where applicable.
This commit is contained in:
@@ -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();
|
||||
Reference in New Issue
Block a user