コード例 #1
0
ファイル: Fixer.php プロジェクト: krizon/swagger-bundle
 /**
  * @param SwaggerDocument $document
  */
 public function fix(SwaggerDocument $document)
 {
     $this->process($document);
     if ($this->next) {
         $this->next->fix($document);
     }
 }
コード例 #2
0
 /**
  * @SuppressWarnings(PHPMD.UnusedFormalParameter)
  *
  * @param InputInterface  $input
  * @param OutputInterface $output
  *
  * @return void
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $document = $this->documentRepository->get($input->getArgument('file'));
     $this->fixer->fix($document);
     $document->write($input->getOption('out'));
 }