Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/Commands/BuildPharCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

//暂时保留 phar:pack 命令,下一个版本再取消
#[AsCommand('build:phar', 'Can be easily packaged a project into phar files. Easy to distribute and use.', ['phar:pack'])]
#[AsCommand('build:phar', 'Can be easily packaged a project into phar files. Easy to distribute and use.')]
class BuildPharCommand extends Command
{
protected $buildDir = '';
Expand Down Expand Up @@ -126,7 +125,7 @@ public function checkEnv(): void
}

if (ini_get('phar.readonly')) {
$command = static::$defaultName;
$command = $this->getName();
throw new RuntimeException(
"The 'phar.readonly' is 'On', build phar must setting it 'Off' or exec with 'php -d phar.readonly=0 ./webman $command'"
);
Expand Down