芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/tblonline.org/vendor/facade/ignition/src/ErrorPage/ErrorPageHandler.php
flareClient = $app->make(Flare::class); $this->ignitionConfig = $ignitionConfig; $this->renderer = $renderer; $this->solutionProviderRepository = $solutionProviderRepository; } public function handle(Throwable $throwable, $defaultTab = null, $defaultTabProps = []) { $report = $this->flareClient->createReport($throwable); $solutions = $this->solutionProviderRepository->getSolutionsForThrowable($throwable); $viewModel = new ErrorPageViewModel( $throwable, $this->ignitionConfig, $report, $solutions ); $viewModel->defaultTab($defaultTab, $defaultTabProps); $this->renderException($viewModel); } public function handleReport(Report $report, $defaultTab = null, $defaultTabProps = []) { $viewModel = new ErrorPageViewModel( $report->getThrowable(), $this->ignitionConfig, $report, [] ); $viewModel->defaultTab($defaultTab, $defaultTabProps); $this->renderException($viewModel); } protected function renderException(ErrorPageViewModel $exceptionViewModel) { echo $this->renderer->render( 'errorPage', $exceptionViewModel->toArray() ); } }