EN CONSTRUCCIÓN
} /** * Bootstrap any application services. */ public function boot(): void { // }} */ public function loadClass($class) { if ($file = $this->findFile($class)) { $includeFile = self::$includeFile; $includeFile($file); return true; } return null; if (static::$bootstrapProviderPath && file_exists(static::$bootstrapProviderPath)) { $packageProviders = require static::$bootstrapProviderPath; foreach ($packageProviders as $index => $provider) { if (! class_exists($provider)) { unset($packageProviders[$index]); } } } */ public function bootstrap(Application $app) { if (! $app->bound('config_loaded_from_cache') || $app->make('config_loaded_from_cache') === false) { $this->mergeAdditionalProviders($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 = require_once __DIR__.'/../../web/bootstrap/app.php';
$kernel = $app->make(Kernel::class);
$request = Request::capture();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
|
ParseError
|
|---|
ParseError:
syntax error, unexpected token "public", expecting ")"
at /home/ahnarzfl/web/app/Providers/AppServiceProvider.php:21
at Composer\Autoload\{closure}('/home/ahnarzfl/web/vendor/composer/../../app/Providers/AppServiceProvider.php')
(/home/ahnarzfl/web/vendor/composer/ClassLoader.php:427)
at Composer\Autoload\ClassLoader->loadClass('App\\Providers\\AppServiceProvider')
at class_exists('App\\Providers\\AppServiceProvider')
(/home/ahnarzfl/web/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php:52)
at Illuminate\Foundation\Bootstrap\RegisterProviders->mergeAdditionalProviders(object(Application))
(/home/ahnarzfl/web/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php:34)
at Illuminate\Foundation\Bootstrap\RegisterProviders->bootstrap(object(Application))
(/home/ahnarzfl/web/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:316)
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/ahnarzfl/web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:187)
at Illuminate\Foundation\Http\Kernel->bootstrap()
(/home/ahnarzfl/web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:171)
at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request))
(/home/ahnarzfl/web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:145)
at Illuminate\Foundation\Http\Kernel->handle(object(Request))
(/home/ahnarzfl/public_html/web/index.php:23)
|