Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Optimise generation with fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
joelwurtz committed Jan 26, 2016
1 parent 7a99364 commit 5ea20ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Command/GenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ public function execute(InputInterface $input, OutputInterface $output)
$janeOpenApi = JaneOpenApi::build();
$files = $janeOpenApi->generate($openApiSchemaFile, $namespace, $generateDirectory);

$janeOpenApi->printFiles($files, $generateDirectory);

foreach ($files as $file) {
$output->writeln(sprintf("Generate %s", $file->getFilename()));
$janeOpenApi->printFiles([$file], $generateDirectory);
}
}
}

0 comments on commit 5ea20ee

Please sign in to comment.