芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/public_html/vendor/nunomaduro/larastan/src/ApplicationResolver.php
bootstrap($app); return; } $filesystem = new Filesystem(); $laravelVendorPath = $app->basePath('vendor'); if ( "$laravelVendorPath/autoload.php" !== "$vendorDir/autoload.php" ) { if ($filesystem->exists($app->basePath('bootstrap/cache/packages.php'))) { $filesystem->delete($app->basePath('bootstrap/cache/packages.php')); } $filesystem->delete($laravelVendorPath); $filesystem->link($vendorDir, $laravelVendorPath); } $app->flush(); } /** * Creates an application and registers service providers found. * * @return \Illuminate\Contracts\Foundation\Application * * @throws \ReflectionException */ public static function resolve(): Application { /** @var string $workingPath */ $workingPath = getcwd(); if (! defined('TESTBENCH_WORKING_PATH')) { define('TESTBENCH_WORKING_PATH', $workingPath); } if ($composerConfig = ComposerHelper::getComposerConfig($workingPath)) { $vendorDir = ComposerHelper::getVendorDirFromComposerConfig($workingPath, $composerConfig); } else { $vendorDir = $workingPath.'/vendor'; } $resolvingCallback = function ($app) { $packageManifest = $app->make(PackageManifest::class); if (! file_exists($packageManifest->manifestPath)) { $packageManifest->build(); } }; if (class_exists(Config::class)) { $config = Config::loadFromYaml($workingPath); static::createSymlinkToVendorPath(Testbench::create($config['laravel'], null, ['extra' => ['dont-discover' => ['*']]]), $vendorDir); return Testbench::create( $config['laravel'], $resolvingCallback, ['enables_package_discoveries' => true, 'extra' => $config->getExtraAttributes()] ); } static::createSymlinkToVendorPath(Testbench::create(Testbench::applicationBasePath(), null, ['extra' => ['dont-discover' => ['*']]]), $vendorDir); return Testbench::create( null, $resolvingCallback, ['enables_package_discoveries' => true] ); } }