setName('webhook_listeners:list') ->setDescription('Lists configured webhook listeners'); } protected function execute(InputInterface $input, OutputInterface $output): int { $webhookListeners = array_map( fn (WebhookListener $listener): array => array_map( fn (string|array|null $value): ?string => (is_array($value) ? json_encode($value) : $value), $listener->jsonSerialize() ), $this->mapper->getAll() ); $this->writeTableInOutputFormat($input, $output, $webhookListeners); return static::SUCCESS; } }