Skip to content

Commit

Permalink
Update debug command to print the binary path when running in Phar
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Apr 17, 2024
1 parent 867a0ba commit c6477ec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/framework/src/Console/Commands/DebugCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@
use Hyde\Hyde;
use Hyde\Facades\Config;
use Composer\InstalledVersions;
use Hyde\Foundation\PharSupport;
use LaravelZero\Framework\Commands\Command;

use function str_replace;
use function realpath;
use function app;
use function get_included_files;

/**
* Print debug information.
Expand Down Expand Up @@ -50,6 +52,10 @@ public function handle(): int
$this->printVerbosePathInformation();
} else {
$this->comment('Project directory: '.Hyde::path());

if (PharSupport::running()) {
$this->comment('Application binary path: '.get_included_files()[0]);

Check warning on line 57 in packages/framework/src/Console/Commands/DebugCommand.php

View check run for this annotation

Codecov / codecov/patch

packages/framework/src/Console/Commands/DebugCommand.php#L57

Added line #L57 was not covered by tests
}
}
$this->newLine();

Expand Down

0 comments on commit c6477ec

Please sign in to comment.