load() public method

Register the application service providers.
public load ( Illuminate\Foundation\Application $app, array $providers ) : void
$app Illuminate\Foundation\Application
$providers array
return void
Example #1
0
|
*/
Request::enableHttpMethodParameterOverride();
/*
|--------------------------------------------------------------------------
| Register The Core Service Providers
|--------------------------------------------------------------------------
|
| The Illuminate core service providers register all of the core pieces
| of the Illuminate framework including session, caching, encryption
| and more. It's simply a convenient wrapper for the registration.
|
*/
$manifestPath = $config['manifest'];
$services = new ProviderRepository(new Filesystem(), $manifestPath);
$services->load($app, $config['providers']);
/*
|--------------------------------------------------------------------------
| Boot The Application
|--------------------------------------------------------------------------
|
| Before we handle the requests we need to make sure the application has
| been booted up. The boot process will call the "boot" method on all
| service provider giving all a chance to register their overrides.
|
*/
$app->boot();
/*
|--------------------------------------------------------------------------
| Load The Application Start Script
|--------------------------------------------------------------------------