Example #1
0
 /**
  * @param InputInterface  $input
  * @param OutputInterface $output
  *
  * @return int|null|void
  * @throws \InvalidArgumentException
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     parent::execute($input, $output);
     $this->_exporterInstance = $this->_getFormatClass();
     if (FALSE === $this->_exporterInstance) {
         throw new \InvalidArgumentException('No supported export format found!');
     }
     $this->_exporterInstance->setIsHierarchical('y' === $input->getOption('hierarchical'));
     if ('y' === $input->getOption('filePerNameSpace')) {
         return $this->_createMultipleFiles();
     }
     return $this->_createSingleFile();
 }
Example #2
0
 /**
  * Imports a bunch of files. The last imported file will always overwrite the settings from the previous one.
  * Environment folder names can have a hierarchical structure.
  *
  * @param InputInterface  $input
  * @param OutputInterface $output
  *
  * @return int|null|void
  * @throws \InvalidArgumentException
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     parent::execute($input, $output);
     $this->processImport();
 }