protected function execute(InputInterface $input, OutputInterface $output) { $documentation = new Documentation($this->resourceNameCollectionFactory->create(), $this->apiTitle, $this->apiDescription, $this->apiVersion, $this->apiFormats); $data = $this->documentationNormalizer->normalize($documentation); $content = json_encode($data, JSON_PRETTY_PRINT); $output->writeln($content); }