Liip\RMT\Information\InformationCollector::handleCommandInput PHP Method

handleCommandInput() public method

public handleCommandInput ( Symfony\Component\Console\Input\InputInterface $input )
$input Symfony\Component\Console\Input\InputInterface
    public function handleCommandInput(InputInterface $input)
    {
        foreach ($input->getOptions() as $name => $value) {
            if ($this->hasRequest($name) && ($value !== null && $value !== false)) {
                $this->getRequest($name)->setValue($value);
            }
        }
    }

Usage Example

Example #1
0
 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.');
     }
 }
All Usage Examples Of Liip\RMT\Information\InformationCollector::handleCommandInput