/** * {@inheritdoc} */ protected function initialize(InputInterface $input, OutputInterface $output) { $config = $input->getArgument(self::INPUT_KEY_CONFIG); $this->config->init($config); //@todo: interactively ask for config file $reset = $input->getOption(self::INPUT_KEY_RESET); if ($reset) { $output->writeln('Reset the current position of migration to start from the beginning'); $this->progress->reset(); } if ($output->getVerbosity() > 1) { $this->logManager->process($this->verbosityLevels[$output->getVerbosity()]); } else { $this->logManager->process(); } }
/** * @return void */ protected function optionVerbose() { $verbose = $this->getArg('verbose'); if (!empty($verbose)) { $this->logManager->process($verbose); } else { $this->logManager->process(); } }