コード例 #1
0
ファイル: ProgressBar.php プロジェクト: apigen/apigen
 /**
  * @return bool
  */
 private function getDebugOption()
 {
     if ($this->consoleIO->getInput() && $this->consoleIO->getInput()->hasOption('debug')) {
         return $this->consoleIO->getInput()->getOption('debug');
     } else {
         return false;
     }
 }
コード例 #2
0
ファイル: GenerateCommand.php プロジェクト: apigen/apigen
 /**
  * @deprecated since version 4.2, to be removed in 5.0
  */
 private function warnAboutDeprecatedOptions(array $options)
 {
     if (isset($options['charset']) && $options['charset']) {
         $this->io->writeln('<warning>You are using the deprecated option "charset". ' . 'UTF-8 is default now.</warning>');
     }
     if (isset($options['deprecated']) && $options['deprecated']) {
         $this->io->writeln('<warning>You are using the deprecated option "deprecated". ' . 'Use "--annotation-groups=deprecated" instead</warning>');
     }
     if (isset($options['todo']) && $options['todo']) {
         $this->io->writeln('<warning>You are using the deprecated option "todo". Use "--annotation-groups=todo" instead</warning>');
     }
     if (isset($options['skipDocPath']) && $options['skipDocPath']) {
         $this->io->writeln('<warning>You are using the deprecated option "skipDocPath". Use "exclude" instead.</warning>');
     }
 }
コード例 #3
0
ファイル: Application.php プロジェクト: rafasashi/ApiGen
 /**
  * {@inheritdoc}
  */
 public function run(InputInterface $input = null, OutputInterface $output = null)
 {
     return parent::run($this->io->getInput(), $this->io->getOutput());
 }