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

25 lines
438 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())));
return 0;
}
}