mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-02 22:35:43 +08:00
refactor command as more easily
This commit is contained in:
17
src/SPC/command/DoctorCommand.php
Normal file
17
src/SPC/command/DoctorCommand.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace SPC\command;
|
||||
|
||||
use Symfony\Component\Console\Attribute\AsCommand;
|
||||
|
||||
#[AsCommand('doctor', 'Diagnose whether the current environment can compile normally')]
|
||||
class DoctorCommand extends BaseCommand
|
||||
{
|
||||
public function handle(): int
|
||||
{
|
||||
logger()->error('Not implemented');
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user