Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Mar 3, 2025
1 parent 8acded0 commit f30acf2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Console/Commander.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,17 +142,17 @@ public function laravel()

$filesystem = new Filesystem;

$hasEnvironmentFile = fn () => is_file(join_paths($APP_BASE_PATH, '.env'));
$hasEnvironmentFile = static fn () => $filesystem->isFile(join_paths($APP_BASE_PATH, '.env'));

TerminatingConsole::beforeWhen(
! $filesystem->isFile(join_paths($VENDOR_PATH, 'autoload.php')),
! $filesystem->exists(join_paths($APP_BASE_PATH, 'vendor', 'autoload.php')),
static function () use ($APP_BASE_PATH) {
static::$testbench::deleteVendorSymlink($APP_BASE_PATH);
}
);

tap(
static::$testbench::createVendorSymlink($APP_BASE_PATH, join_paths($this->workingPath, 'vendor')),
static::$testbench::createVendorSymlink($APP_BASE_PATH, $VENDOR_PATH),
function ($app) use ($filesystem, $hasEnvironmentFile) {
$this->copyTestbenchConfigurationFile($app, $filesystem, $this->workingPath);

Expand Down

0 comments on commit f30acf2

Please sign in to comment.