芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/www/vendor/facade/ignition/src/SolutionProviders/MissingPackageSolutionProvider.php
getMessage(), $matches)) { return false; } $class = $matches[1]; if (Str::startsWith($class, app()->getNamespace())) { return false; } $this->package = $this->findPackageFromClassName($class); return ! is_null($this->package); } public function getSolutions(Throwable $throwable): array { return [new MissingPackageSolution($this->package)]; } protected function findPackageFromClassName(string $missingClassName): ?Package { if (! $package = $this->findComposerPackageForClassName($missingClassName)) { return null; } return $package->hasNamespaceThatContainsClassName($missingClassName) ? $package : null; } protected function findComposerPackageForClassName(string $className): ?Package { $packages = Packagist::findPackagesForClassName($className); return $packages[0] ?? null; } }