ApiPlatform\Core\Bridge\Symfony\Bundle\Command\SwaggerCommand::execute PHP Метод

execute() защищенный метод

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    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);
    }