}
try {
$reflector = new ReflectionClass($concrete);
} catch (ReflectionException $e) {
throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);
}
// If the type is not instantiable, the developer is attempting to resolve
// an abstract type such as an Interface or Abstract Class and there is
// no binding registered for the abstractions so we need to bail out.
// We're ready to instantiate an instance of the concrete type registered for
// the binding. This will instantiate the types, as well as resolve any of
// its "nested" dependencies recursively until all have gotten resolved.
$object = $this->isBuildable($concrete, $abstract)
? $this->build($concrete)
: $this->make($concrete);
// If we defined any extenders for this type, we'll need to spin through them
// and apply them to the object being built. This allows for the extension
// of services, such as changing configuration or decorating the object.
*/
protected function resolve($abstract, $parameters = [], $raiseEvents = true)
{
$this->loadDeferredProviderIfNeeded($abstract = $this->getAlias($abstract));
return parent::resolve($abstract, $parameters, $raiseEvents);
}
/**
* Load the deferred provider if the given type is a deferred service and the instance has not been loaded.
*
*
* @throws \Illuminate\Contracts\Container\BindingResolutionException
*/
public function make($abstract, array $parameters = [])
{
return $this->resolve($abstract, $parameters);
}
/**
* {@inheritdoc}
*
*/
public function make($abstract, array $parameters = [])
{
$this->loadDeferredProviderIfNeeded($abstract = $this->getAlias($abstract));
return parent::make($abstract, $parameters);
}
/**
* Resolve the given type from the container.
*
$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);
}
$kernel = $app->make(Kernel::class);
$app->usePublicPath(__DIR__);
$response = $kernel->handle(
$request = Request::capture()
)->send();
$kernel->terminate($request, $response);
array_pop($this->buildStack);
}
}
try {
$reflector = new ReflectionClass($concrete);
} catch (ReflectionException $e) {
throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);
}
// If the type is not instantiable, the developer is attempting to resolve
array_pop($this->buildStack);
}
}
try {
$reflector = new ReflectionClass($concrete);
} catch (ReflectionException $e) {
throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);
}
// If the type is not instantiable, the developer is attempting to resolve
// We're ready to instantiate an instance of the concrete type registered for
// the binding. This will instantiate the types, as well as resolve any of
// its "nested" dependencies recursively until all have gotten resolved.
$object = $this->isBuildable($concrete, $abstract)
? $this->build($concrete)
: $this->make($concrete);
// If we defined any extenders for this type, we'll need to spin through them
// and apply them to the object being built. This allows for the extension
// of services, such as changing configuration or decorating the object.
*/
protected function resolve($abstract, $parameters = [], $raiseEvents = true)
{
$this->loadDeferredProviderIfNeeded($abstract = $this->getAlias($abstract));
return parent::resolve($abstract, $parameters, $raiseEvents);
}
/**
* Load the deferred provider if the given type is a deferred service and the instance has not been loaded.
*
*
* @throws \Illuminate\Contracts\Container\BindingResolutionException
*/
public function make($abstract, array $parameters = [])
{
return $this->resolve($abstract, $parameters);
}
/**
* {@inheritdoc}
*
*/
public function make($abstract, array $parameters = [])
{
$this->loadDeferredProviderIfNeeded($abstract = $this->getAlias($abstract));
return parent::make($abstract, $parameters);
}
/**
* Resolve the given type from the container.
*
$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);
}
$kernel = $app->make(Kernel::class);
$app->usePublicPath(__DIR__);
$response = $kernel->handle(
$request = Request::capture()
)->send();
$kernel->terminate($request, $response);
[2/2]
BindingResolutionException
|
---|
Illuminate\Contracts\Container\BindingResolutionException: Target class [Illuminate\Foundation\Bootstrap\HandleExceptions] does not exist. at /home/systemkol/source/vendor/laravel/framework/src/Illuminate/Container/Container.php:961 at Illuminate\Container\Container->build('Illuminate\\Foundation\\Bootstrap\\HandleExceptions') (/home/systemkol/source/vendor/laravel/framework/src/Illuminate/Container/Container.php:832) at Illuminate\Container\Container->resolve('Illuminate\\Foundation\\Bootstrap\\HandleExceptions', array(), true) (/home/systemkol/source/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:1078) at Illuminate\Foundation\Application->resolve('Illuminate\\Foundation\\Bootstrap\\HandleExceptions', array()) (/home/systemkol/source/vendor/laravel/framework/src/Illuminate/Container/Container.php:763) at Illuminate\Container\Container->make('Illuminate\\Foundation\\Bootstrap\\HandleExceptions', array()) (/home/systemkol/source/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:1058) at Illuminate\Foundation\Application->make('Illuminate\\Foundation\\Bootstrap\\HandleExceptions') (/home/systemkol/source/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:342) at Illuminate\Foundation\Application->bootstrapWith(array('Illuminate\\Foundation\\Bootstrap\\LoadEnvironmentVariables', 'Illuminate\\Foundation\\Bootstrap\\LoadConfiguration', 'Illuminate\\Foundation\\Bootstrap\\HandleExceptions', 'Illuminate\\Foundation\\Bootstrap\\RegisterFacades', 'Illuminate\\Foundation\\Bootstrap\\RegisterProviders', 'Illuminate\\Foundation\\Bootstrap\\BootProviders')) (/home/systemkol/source/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:187) at Illuminate\Foundation\Http\Kernel->bootstrap() (/home/systemkol/source/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:171) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (/home/systemkol/source/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:145) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (/home/systemkol/public_html/index.php:53) |
[1/2]
ReflectionException
|
---|
ReflectionException: Class "Illuminate\Foundation\Bootstrap\HandleExceptions" does not exist at /home/systemkol/source/vendor/laravel/framework/src/Illuminate/Container/Container.php:959 at ReflectionClass->__construct('Illuminate\\Foundation\\Bootstrap\\HandleExceptions') (/home/systemkol/source/vendor/laravel/framework/src/Illuminate/Container/Container.php:959) at Illuminate\Container\Container->build('Illuminate\\Foundation\\Bootstrap\\HandleExceptions') (/home/systemkol/source/vendor/laravel/framework/src/Illuminate/Container/Container.php:832) at Illuminate\Container\Container->resolve('Illuminate\\Foundation\\Bootstrap\\HandleExceptions', array(), true) (/home/systemkol/source/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:1078) at Illuminate\Foundation\Application->resolve('Illuminate\\Foundation\\Bootstrap\\HandleExceptions', array()) (/home/systemkol/source/vendor/laravel/framework/src/Illuminate/Container/Container.php:763) at Illuminate\Container\Container->make('Illuminate\\Foundation\\Bootstrap\\HandleExceptions', array()) (/home/systemkol/source/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:1058) at Illuminate\Foundation\Application->make('Illuminate\\Foundation\\Bootstrap\\HandleExceptions') (/home/systemkol/source/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:342) at Illuminate\Foundation\Application->bootstrapWith(array('Illuminate\\Foundation\\Bootstrap\\LoadEnvironmentVariables', 'Illuminate\\Foundation\\Bootstrap\\LoadConfiguration', 'Illuminate\\Foundation\\Bootstrap\\HandleExceptions', 'Illuminate\\Foundation\\Bootstrap\\RegisterFacades', 'Illuminate\\Foundation\\Bootstrap\\RegisterProviders', 'Illuminate\\Foundation\\Bootstrap\\BootProviders')) (/home/systemkol/source/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:187) at Illuminate\Foundation\Http\Kernel->bootstrap() (/home/systemkol/source/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:171) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (/home/systemkol/source/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:145) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (/home/systemkol/public_html/index.php:53) |