protected function execute(InputInterface $input, OutputInterface $output)
{
$this->io->title($this->getDescription());
foreach ($this->apiViews as $apiView) {
$bufferOutput = new BufferedOutput();
$this->application->run(new StringInput(sprintf('api:doc:dump --view=%s', $apiView)), $bufferOutput);
$viewDump = $bufferOutput->fetch();
$viewDumpFile = __DIR__ . '/../Resources/doc/' . $apiView . '-api-doc.md';
file_put_contents($viewDumpFile, $viewDump);
$this->io->writeln(sprintf("%s -> view dumped to %s", $apiView, $viewDumpFile));
}
}