class ServerDumpCommand extends Command
{ private DumpServer
$server;
/** @var DumpDescriptorInterface[] */
private array
$descriptors;
public function __construct(DumpServer
$server, array
$descriptors =
[]) { $this->server =
$server;
$this->descriptors =
$descriptors +
[ 'cli' =>
new CliDescriptor(new CliDumper()),
'html' =>
new HtmlDescriptor(new HtmlDumper()),
];
parent::
__construct();
} protected function configure(): void
{ $this ->
addOption('format', null, InputOption::VALUE_REQUIRED,
sprintf('The output format (%s)',
implode(', ',
$this->
getAvailableFormats())), 'cli'
) ->
setHelp(<<<'EOF'