public handleCommandInput ( Symfony\Component\Console\Input\InputInterface $input ) | ||
$input | Symfony\Component\Console\Input\InputInterface |
protected function initialize(InputInterface $input, OutputInterface $output) { $this->informationCollector->handleCommandInput($input); $this->writeBigTitle('Welcome to Release Manager Initialization'); $this->writeEmptyLine(); // Guessing elements path $this->buildPaths(); // Security check $helper = new \Liip\RMT\Helpers\ComposerConfig($this->getContext()); $section = $helper->getRMTConfigSection(); if ($section !== null) { throw new \Exception('A config section "extra/rmt" already exists in composer json.'); } }
/** * {@inheritdoc} */ protected function initialize(InputInterface $input, OutputInterface $output) { parent::initialize($input, $output); $this->informationCollector->handleCommandInput($input); $this->getOutput()->writeBigTitle('Welcome to Release Management Tool initialization'); $this->getOutput()->writeEmptyLine(); // Security check for the config $configPath = $this->getApplication()->getConfigFilePath(); if ($configPath !== null && file_exists($configPath) && $input->getOption('force') !== true) { throw new \Exception("A config file already exist ({$configPath}), if you want to regenerate it, use the --force option"); } // Guessing elements path $this->buildPaths($configPath); // disable the creation of the conveniance script when within a phar if (extension_loaded('phar') && \Phar::running()) { $this->informationCollector->setValueFor('configonly', 'y'); } }