static-php-cli/src/SPC/command/dev/AllExtCommand.php

24 lines
451 B
PHP
Raw Normal View History

2023-07-22 17:33:38 +08:00
<?php
declare(strict_types=1);
namespace SPC\command\dev;
use SPC\command\BaseCommand;
use SPC\store\Config;
use Symfony\Component\Console\Attribute\AsCommand;
#[AsCommand('dev:ext-all', 'Dev command')]
class AllExtCommand extends BaseCommand
{
public function configure()
{
}
public function handle(): int
{
$this->output->writeln(implode(',', array_keys(Config::getExts())));
2023-08-06 10:43:20 +08:00
return static::SUCCESS;
2023-07-22 17:33:38 +08:00
}
}