* @return void
*/
private function checkRequirements()
{
if ( ! function_exists('finfo_buffer')) {
throw new MissingDependencyException(
"PHP Fileinfo extension must be installed/enabled to use Intervention Image."
);
}
}
}
*
* @param array $config
*/
public function __construct(array $config = [])
{
$this->checkRequirements();
$this->configure($config);
}
/**
* Overrides configuration settings
'image'
);
// create image
$app->singleton('image', function ($app) {
return new ImageManager($this->getImageConfig($app));
});
$app->alias('image', 'Intervention\Image\ImageManager');
}
{
// If the concrete type is actually a Closure, we will just execute it and
// hand back the results of the functions, which allows functions to be
// used as resolvers for more fine-tuned resolution of these objects.
if ($concrete instanceof Closure) {
return $concrete($this, $this->getLastParameterOverride());
}
try {
$reflector = new ReflectionClass($concrete);
} catch (ReflectionException $e) {
// 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.
if ($this->isBuildable($concrete, $abstract)) {
$object = $this->build($concrete);
} else {
$object = $this->make($concrete);
}
// If we defined any extenders for this type, we'll need to spin through them
*/
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.
*
protected function resolveClass(ReflectionParameter $parameter)
{
try {
return $parameter->isVariadic()
? $this->resolveVariadicClass($parameter)
: $this->make(Util::getParameterClassName($parameter));
}
// If we can not resolve the class instance, we will check to see if the value
// is optional, and if it is we will return the optional parameter value as
// the value of the dependency, similarly to how we do this with scalars.
// If the class is null, it means the dependency is a string or some other
// primitive type which we can not resolve since it is not a class and
// we will just bomb out with an error since we have no-where to go.
$result = is_null(Util::getParameterClassName($dependency))
? $this->resolvePrimitive($dependency)
: $this->resolveClass($dependency);
if ($dependency->isVariadic()) {
$results = array_merge($results, $result);
} else {
$results[] = $result;
// Once we have all the constructor's parameters we can create each of the
// dependency instances and then use the reflection instances to make a
// new instance of this class, injecting the created dependencies in.
try {
$instances = $this->resolveDependencies($dependencies);
} catch (BindingResolutionException $e) {
array_pop($this->buildStack);
throw $e;
}
// 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.
if ($this->isBuildable($concrete, $abstract)) {
$object = $this->build($concrete);
} else {
$object = $this->make($concrete);
}
// If we defined any extenders for this type, we'll need to spin through them
*/
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.
*
protected function resolveClass(ReflectionParameter $parameter)
{
try {
return $parameter->isVariadic()
? $this->resolveVariadicClass($parameter)
: $this->make(Util::getParameterClassName($parameter));
}
// If we can not resolve the class instance, we will check to see if the value
// is optional, and if it is we will return the optional parameter value as
// the value of the dependency, similarly to how we do this with scalars.
// If the class is null, it means the dependency is a string or some other
// primitive type which we can not resolve since it is not a class and
// we will just bomb out with an error since we have no-where to go.
$result = is_null(Util::getParameterClassName($dependency))
? $this->resolvePrimitive($dependency)
: $this->resolveClass($dependency);
if ($dependency->isVariadic()) {
$results = array_merge($results, $result);
} else {
$results[] = $result;
// Once we have all the constructor's parameters we can create each of the
// dependency instances and then use the reflection instances to make a
// new instance of this class, injecting the created dependencies in.
try {
$instances = $this->resolveDependencies($dependencies);
} catch (BindingResolutionException $e) {
array_pop($this->buildStack);
throw $e;
}
// 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.
if ($this->isBuildable($concrete, $abstract)) {
$object = $this->build($concrete);
} else {
$object = $this->make($concrete);
}
// If we defined any extenders for this type, we'll need to spin through them
*/
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.
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($key)
{
return $this->make($key);
}
/**
* Set the value at a given offset.
*
if (isset(static::$resolvedInstance[$name])) {
return static::$resolvedInstance[$name];
}
if (static::$app) {
return static::$resolvedInstance[$name] = static::$app[$name];
}
}
/**
* Clear a resolved facade instance.
*
* @return mixed
*/
public static function getFacadeRoot()
{
return static::resolveFacadeInstance(static::getFacadeAccessor());
}
/**
* Get the registered name of the component.
*
*
* @throws \RuntimeException
*/
public static function __callStatic($method, $args)
{
$instance = static::getFacadeRoot();
if (! $instance) {
throw new RuntimeException('A facade root has not been set.');
}
'attributes' => [],
]);
Menu::addMenuLocation('header-navigation', 'Header navigation');
RvMedia::setUploadPathAndURLToPublic();
RvMedia::addSize('medium', 800, 800)
->addSize('product-thumb', 400, 400);
if (is_plugin_active('ecommerce')) {
$__data = $data;
return (static function () use ($__path, $__data) {
extract($__data, EXTR_SKIP);
return require_once $__path;
})();
}
throw new FileNotFoundException("File does not exist at path {$path}.");
}
return (static function () use ($__path, $__data) {
extract($__data, EXTR_SKIP);
return require_once $__path;
})();
}
throw new FileNotFoundException("File does not exist at path {$path}.");
}
if (! $instance) {
throw new RuntimeException('A facade root has not been set.');
}
return $instance->$method(...$args);
}
}
*/
public static function autoload(string $directory): void
{
$helpers = File::glob($directory . '/*.php');
foreach ($helpers as $helper) {
File::requireOnce($helper);
}
}
/**
* @param Eloquent | Model $object
$loader->register();
}
}
}
Helper::autoload(theme_path($theme . '/functions'));
}
}
}
if (static::isCallableWithAtSign($callback) || $defaultMethod) {
return static::callClass($container, $callback, $parameters, $defaultMethod);
}
return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters)));
});
}
/**
* Call a string reference to a class using Class@method syntax.
* @param mixed $value
* @return mixed
*/
public static function unwrapIfClosure($value)
{
return $value instanceof Closure ? $value() : $value;
}
/**
* Get the class name of the given parameter's type, if possible.
*
if ($container->hasMethodBinding($method)) {
return $container->callMethodBinding($method, $callback[0]);
}
return Util::unwrapIfClosure($default);
}
/**
* Normalize the given callback into a Class@method string.
*
return static::callClass($container, $callback, $parameters, $defaultMethod);
}
return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters)));
});
}
/**
* Call a string reference to a class using Class@method syntax.
*
*
* @throws \InvalidArgumentException
*/
public function call($callback, array $parameters = [], $defaultMethod = null)
{
return BoundMethod::call($this, $callback, $parameters, $defaultMethod);
}
/**
* Get a closure to resolve the given type from the container.
*
protected function bootProvider(ServiceProvider $provider)
{
$provider->callBootingCallbacks();
if (method_exists($provider, 'boot')) {
$this->call([$provider, 'boot']);
}
$provider->callBootedCallbacks();
}
// for any listeners that need to do work after this initial booting gets
// finished. This is useful when ordering the boot-up processes we run.
$this->fireAppCallbacks($this->bootingCallbacks);
array_walk($this->serviceProviders, function ($p) {
$this->bootProvider($p);
});
$this->booted = true;
$this->fireAppCallbacks($this->bootedCallbacks);
// finished. This is useful when ordering the boot-up processes we run.
$this->fireAppCallbacks($this->bootingCallbacks);
array_walk($this->serviceProviders, function ($p) {
$this->bootProvider($p);
});
$this->booted = true;
$this->fireAppCallbacks($this->bootedCallbacks);
}
* @param \Illuminate\Contracts\Foundation\Application $app
* @return void
*/
public function bootstrap(Application $app)
{
$app->boot();
}
}
$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());
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
});
$kernel = $app->make(Kernel::class);
$response = tap($kernel->handle(
$request = Request::capture()
))->send();
$kernel->terminate($request, $response);
MissingDependencyException
|
---|
Intervention\Image\Exception\MissingDependencyException: PHP Fileinfo extension must be installed/enabled to use Intervention Image. at /home/greenlinegh/public_html/shop/vendor/intervention/image/src/Intervention/Image/ImageManager.php:137 at Intervention\Image\ImageManager->checkRequirements() (/home/greenlinegh/public_html/shop/vendor/intervention/image/src/Intervention/Image/ImageManager.php:27) at Intervention\Image\ImageManager->__construct(array('driver' => 'gd')) (/home/greenlinegh/public_html/shop/vendor/intervention/image/src/Intervention/Image/ImageServiceProviderLaravelRecent.php:51) at Intervention\Image\ImageServiceProviderLaravelRecent->Intervention\Image\{closure}(object(Application), array()) (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Container/Container.php:873) at Illuminate\Container\Container->build(object(Closure)) (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Container/Container.php:758) at Illuminate\Container\Container->resolve('image', array(), true) (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:851) at Illuminate\Foundation\Application->resolve('image', array()) (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Container/Container.php:694) at Illuminate\Container\Container->make('image', array()) (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:836) at Illuminate\Foundation\Application->make('image') (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Container/Container.php:1027) at Illuminate\Container\Container->resolveClass(object(ReflectionParameter)) (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Container/Container.php:947) at Illuminate\Container\Container->resolveDependencies(array(object(ReflectionParameter), object(ReflectionParameter))) (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Container/Container.php:908) at Illuminate\Container\Container->build('Botble\\Media\\Services\\ThumbnailService') (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Container/Container.php:758) at Illuminate\Container\Container->resolve('Botble\\Media\\Services\\ThumbnailService', array(), true) (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:851) at Illuminate\Foundation\Application->resolve('Botble\\Media\\Services\\ThumbnailService', array()) (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Container/Container.php:694) at Illuminate\Container\Container->make('Botble\\Media\\Services\\ThumbnailService', array()) (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:836) at Illuminate\Foundation\Application->make('Botble\\Media\\Services\\ThumbnailService') (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Container/Container.php:1027) at Illuminate\Container\Container->resolveClass(object(ReflectionParameter)) (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Container/Container.php:947) at Illuminate\Container\Container->resolveDependencies(array(object(ReflectionParameter), object(ReflectionParameter), object(ReflectionParameter), object(ReflectionParameter))) (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Container/Container.php:908) at Illuminate\Container\Container->build('Botble\\Media\\RvMedia') (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Container/Container.php:758) at Illuminate\Container\Container->resolve('Botble\\Media\\RvMedia', array(), true) (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:851) at Illuminate\Foundation\Application->resolve('Botble\\Media\\RvMedia', array()) (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Container/Container.php:694) at Illuminate\Container\Container->make('Botble\\Media\\RvMedia', array()) (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:836) at Illuminate\Foundation\Application->make('Botble\\Media\\RvMedia') (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Container/Container.php:1419) at Illuminate\Container\Container->offsetGet('Botble\\Media\\RvMedia') (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:198) at Illuminate\Support\Facades\Facade::resolveFacadeInstance('Botble\\Media\\RvMedia') (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:166) at Illuminate\Support\Facades\Facade::getFacadeRoot() (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:255) at Illuminate\Support\Facades\Facade::__callStatic('setUploadPathAndURLToPublic', array()) (/home/greenlinegh/public_html/shop/platform/themes/nest/functions/functions.php:51) at require_once('/home/greenlinegh/public_html/shop/platform/themes/nest/functions/functions.php') (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:132) at Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}() (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:133) at Illuminate\Filesystem\Filesystem->requireOnce('/home/greenlinegh/public_html/shop/platform/themes/nest/functions/functions.php') (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:261) at Illuminate\Support\Facades\Facade::__callStatic('requireOnce', array('/home/greenlinegh/public_html/shop/platform/themes/nest/functions/functions.php')) (/home/greenlinegh/public_html/shop/vendor/botble/platform/base/src/Supports/Helper.php:28) at Botble\Base\Supports\Helper::autoload('/home/greenlinegh/public_html/shop/platform/themes/nest/functions') (/home/greenlinegh/public_html/shop/vendor/botble/theme/src/Providers/ThemeManagementServiceProvider.php:44) at Botble\Theme\Providers\ThemeManagementServiceProvider->boot() (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36) at Illuminate\Container\BoundMethod::Illuminate\Container\{closure}() (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Container/Util.php:40) at Illuminate\Container\Util::unwrapIfClosure(object(Closure)) (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:93) at Illuminate\Container\BoundMethod::callBoundMethod(object(Application), array(object(ThemeManagementServiceProvider), 'boot'), object(Closure)) (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:37) at Illuminate\Container\BoundMethod::call(object(Application), array(object(ThemeManagementServiceProvider), 'boot'), array(), null) (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Container/Container.php:653) at Illuminate\Container\Container->call(array(object(ThemeManagementServiceProvider), 'boot')) (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:924) at Illuminate\Foundation\Application->bootProvider(object(ThemeManagementServiceProvider)) (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:905) at Illuminate\Foundation\Application->Illuminate\Foundation\{closure}(object(ThemeManagementServiceProvider), 83) at array_walk(array(object(EventServiceProvider), object(LogServiceProvider), object(RoutingServiceProvider), object(AuthServiceProvider), object(CookieServiceProvider), object(DatabaseServiceProvider), object(EncryptionServiceProvider), object(FilesystemServiceProvider), object(FormRequestServiceProvider), object(ParallelTestingServiceProvider), object(FoundationServiceProvider), object(NotificationServiceProvider), object(PaginationServiceProvider), object(SessionServiceProvider), object(ViewServiceProvider), object(ServiceProvider), object(AssetsServiceProvider), object(MenuServiceProvider), object(PageServiceProvider), object(SettingServiceProvider), object(BaseServiceProvider), object(CommandServiceProvider), object(EventServiceProvider), object(BreadcrumbsServiceProvider), object(ComposerServiceProvider), object(MailConfigServiceProvider), object(FormServiceProvider), object(SupportServiceProvider), object(TableServiceProvider), object(AclServiceProvider), object(DashboardServiceProvider), object(MediaServiceProvider), object(JsValidationServiceProvider), object(ChartServiceProvider), object(PluginManagementServiceProvider), object(RevisionServiceProvider), object(SeoHelperServiceProvider), object(ShortcodeServiceProvider), object(SitemapServiceProvider), object(SlugServiceProvider), object(ThemeServiceProvider), object(RouteServiceProvider), object(WidgetServiceProvider), object(TrustedProxyServiceProvider), object(CorsServiceProvider), object(ImageServiceProvider), object(FormBuilderServiceProvider), object(CashierServiceProvider), object(ExcelServiceProvider), object(PurifierServiceProvider), object(MollieServiceProvider), object(ServiceProvider), object(NewsletterServiceProvider), object(ZiggyServiceProvider), object(PaystackServiceProvider), object(HtmlServiceProvider), object(HtmlServiceProvider), object(ButtonsServiceProvider), object(DataTablesServiceProvider), object(AppServiceProvider), object(AuthServiceProvider), object(EventServiceProvider), object(RouteServiceProvider), object(EventServiceProvider), object(CommandServiceProvider), object(EventServiceProvider), object(CommandServiceProvider), object(EventServiceProvider), object(ValidationServiceProvider), object(TranslationServiceProvider), object(CacheServiceProvider), object(AnalyticsServiceProvider), object(BackupServiceProvider), object(ContactServiceProvider), object(CookieConsentServiceProvider), object(EcommerceServiceProvider), object(SimpleSliderServiceProvider), object(SocialLoginServiceProvider), object(PaymentServiceProvider), object(CommandServiceProvider), object(EventServiceProvider), object(EventServiceProvider), object(CommandServiceProvider), object(ThemeManagementServiceProvider), object(SocialiteServiceProvider), object(CommandServiceProvider), object(HookServiceProvider), object(EventServiceProvider), object(CommandServiceProvider), object(HookServiceProvider)), object(Closure)) (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:906) at Illuminate\Foundation\Application->boot() (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17) at Illuminate\Foundation\Bootstrap\BootProviders->bootstrap(object(Application)) (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:237) 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/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:153) at Illuminate\Foundation\Http\Kernel->bootstrap() (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:137) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (/home/greenlinegh/public_html/shop/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:111) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (/home/greenlinegh/public_html/shop/public/index.php:56) |