* @param string $provider
* @return \Illuminate\Support\ServiceProvider
*/
public function createProvider($provider)
{
return new $provider($this->app);
}
}
// the application so we can compare it on each request to the service
// and determine if the manifest should be recompiled or is current.
$manifest = $this->freshManifest($providers);
foreach ($providers as $provider) {
$instance = $this->createProvider($provider);
// When recompiling the service manifest, we will spin through each of the
// providers and check if it's a deferred provider or not. If so we'll
// add it's provided services to the manifest and note the provider.
if ($instance->isDeferred()) {
// First we will load the service manifest, which contains information on all
// service providers registered with the application and which services it
// provides. This is used to know which services are "deferred" loaders.
if ($this->shouldRecompile($manifest, $providers)) {
$manifest = $this->compileManifest($providers);
}
// Next, we will register events to load the providers for each of the events
// that it has requested. This allows the service provider to defer itself
// while still getting automatically loaded when a certain event occurs.
->partition(fn ($provider) => str_starts_with($provider, 'Illuminate\\'));
$providers->splice(1, 0, [$this->make(PackageManifest::class)->providers()]);
(new ProviderRepository($this, new Filesystem, $this->getCachedServicesPath()))
->load($providers->collapse()->toArray());
}
/**
* Register a service provider with the application.
*
* @param \Illuminate\Contracts\Foundation\Application $app
* @return void
*/
public function bootstrap(Application $app)
{
$app->registerConfiguredProviders();
}
}
$this->hasBeenBootstrapped = true;
foreach ($bootstrappers as $bootstrapper) {
$this['events']->dispatch('bootstrapping: '.$bootstrapper, [$this]);
$this->make($bootstrapper)->bootstrap($this);
$this['events']->dispatch('bootstrapped: '.$bootstrapper, [$this]);
}
}
* @return void
*/
public function bootstrap()
{
if (! $this->app->hasBeenBootstrapped()) {
$this->app->bootstrapWith($this->bootstrappers());
}
}
/**
* Get the route dispatcher callback.
{
$this->app->instance('request', $request);
Facade::clearResolvedInstance('request');
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
$this->requestStartedAt = Carbon::now();
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
$app->usePublicPath(__DIR__);
$kernel = $app->make(Kernel::class);
$response = $kernel->handle(
$request = Request::capture()
)->send();
$kernel->terminate($request, $response);
Error
|
---|
Error: Class "Intervention\Image\ImageServiceProvider" not found at /home/domcomin/botble/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:206 at Illuminate\Foundation\ProviderRepository->createProvider() (/home/domcomin/botble/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:142) at Illuminate\Foundation\ProviderRepository->compileManifest() (/home/domcomin/botble/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:61) at Illuminate\Foundation\ProviderRepository->load() (/home/domcomin/botble/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:765) at Illuminate\Foundation\Application->registerConfiguredProviders() (/home/domcomin/botble/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php:17) at Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap() (/home/domcomin/botble/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:263) at Illuminate\Foundation\Application->bootstrapWith() (/home/domcomin/botble/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:186) at Illuminate\Foundation\Http\Kernel->bootstrap() (/home/domcomin/botble/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:170) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter() (/home/domcomin/botble/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:144) at Illuminate\Foundation\Http\Kernel->handle() (/home/domcomin/e-themes.info/index.php:53) |