*
* Prevents access to $this/self from included files.
*/
function includeFile($file)
{
include $file;
}
*
* Prevents access to $this/self from included files.
*/
function includeFile($file)
{
include $file;
}
*
* Prevents access to $this/self from included files.
*/
function includeFile($file)
{
include $file;
}
* @return true|null True if loaded, null otherwise
*/
public function loadClass($class)
{
if ($file = $this->findFile($class)) {
includeFile($file);
return true;
}
return null;
$general = GeneralSetting::first();
$viewShare['general'] = $general;
$viewShare['activeTemplate'] = $activeTemplate;
$viewShare['activeTemplateTrue'] = activeTemplate(true);
$viewShare['language'] = Language::all();
$viewShare['pages'] = Page::where('tempname',$activeTemplate)->where('slug','!=','home')->get();
view()->share($viewShare);
view()->composer('admin.partials.sidenav', function ($view) {
$view->with([
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);
}
$app = require_once __DIR__.'/core/bootstrap/app.php';
$kernel = $app->make(Kernel::class);
$response = tap($kernel->handle(
$request = Request::capture()
))->send();
$kernel->terminate($request, $response);
ErrorException
|
---|
ErrorException: include(): read of 175 bytes failed with errno=12 Cannot allocate memory at /home1/indalpco/public_html/limocabsdotin/core/vendor/composer/ClassLoader.php:480 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, 'include(): read of 175 bytes failed with errno=12 Cannot allocate memory', '/home1/indalpco/public_html/limocabsdotin/core/vendor/composer/ClassLoader.php', 480, array('file' => '/home1/indalpco/public_html/limocabsdotin/core/vendor/composer/../../app/Models/Page.php')) (/home1/indalpco/public_html/limocabsdotin/core/vendor/composer/ClassLoader.php:480) at include() (/home1/indalpco/public_html/limocabsdotin/core/vendor/composer/ClassLoader.php:480) at Composer\Autoload\includeFile('/home1/indalpco/public_html/limocabsdotin/core/vendor/composer/../../app/Models/Page.php') (/home1/indalpco/public_html/limocabsdotin/core/vendor/composer/ClassLoader.php:346) at Composer\Autoload\ClassLoader->loadClass('App\\Models\\Page') at spl_autoload_call('App\\Models\\Page') (/home1/indalpco/public_html/limocabsdotin/core/app/Providers/AppServiceProvider.php:44) at App\Providers\AppServiceProvider->boot() (/home1/indalpco/public_html/limocabsdotin/core/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36) at Illuminate\Container\BoundMethod::Illuminate\Container\{closure}() (/home1/indalpco/public_html/limocabsdotin/core/vendor/laravel/framework/src/Illuminate/Container/Util.php:40) at Illuminate\Container\Util::unwrapIfClosure(object(Closure)) (/home1/indalpco/public_html/limocabsdotin/core/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:93) at Illuminate\Container\BoundMethod::callBoundMethod(object(Application), array(object(AppServiceProvider), 'boot'), object(Closure)) (/home1/indalpco/public_html/limocabsdotin/core/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:37) at Illuminate\Container\BoundMethod::call(object(Application), array(object(AppServiceProvider), 'boot'), array(), null) (/home1/indalpco/public_html/limocabsdotin/core/vendor/laravel/framework/src/Illuminate/Container/Container.php:651) at Illuminate\Container\Container->call(array(object(AppServiceProvider), 'boot')) (/home1/indalpco/public_html/limocabsdotin/core/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:914) at Illuminate\Foundation\Application->bootProvider(object(AppServiceProvider)) (/home1/indalpco/public_html/limocabsdotin/core/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:895) at Illuminate\Foundation\Application->Illuminate\Foundation\{closure}(object(AppServiceProvider), 22) 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(TrustedProxyServiceProvider), object(CorsServiceProvider), object(ImageServiceProvider), object(SanctumServiceProvider), object(UiServiceProvider), object(MollieServiceProvider), object(ServiceProvider), object(AppServiceProvider), object(AuthServiceProvider), object(EventServiceProvider), object(RouteServiceProvider), object(HashServiceProvider)), object(Closure)) (/home1/indalpco/public_html/limocabsdotin/core/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:896) at Illuminate\Foundation\Application->boot() (/home1/indalpco/public_html/limocabsdotin/core/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17) at Illuminate\Foundation\Bootstrap\BootProviders->bootstrap(object(Application)) (/home1/indalpco/public_html/limocabsdotin/core/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')) (/home1/indalpco/public_html/limocabsdotin/core/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:152) at Illuminate\Foundation\Http\Kernel->bootstrap() (/home1/indalpco/public_html/limocabsdotin/core/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:136) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (/home1/indalpco/public_html/limocabsdotin/core/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:110) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (/home1/indalpco/public_html/limocabsdotin/index.php:52) |