File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 99use Symfony \Component \Console \Input \InputInterface ;
1010use Symfony \Component \Console \Output \OutputInterface ;
1111
12- //暂时保留 phar:pack 命令,下一个版本再取消
13- #[AsCommand('build:phar ' , 'Can be easily packaged a project into phar files. Easy to distribute and use. ' , ['phar:pack ' ])]
12+ #[AsCommand('build:phar ' , 'Can be easily packaged a project into phar files. Easy to distribute and use. ' )]
1413class BuildPharCommand extends Command
1514{
1615 protected $ buildDir = '' ;
@@ -126,7 +125,7 @@ public function checkEnv(): void
126125 }
127126
128127 if (ini_get ('phar.readonly ' )) {
129- $ command = static :: $ defaultName ;
128+ $ command = $ this -> getName () ;
130129 throw new RuntimeException (
131130 "The 'phar.readonly' is 'On', build phar must setting it 'Off' or exec with 'php -d phar.readonly=0 ./webman $ command' "
132131 );
You can’t perform that action at this time.
0 commit comments