public function determineDomainsToImport(ExportCommand $exportCommand)
 {
     if ($exportCommand->getDomains() === false) {
         return array();
     }
     return $this->parseRequestedDomains($exportCommand->getDomains());
 }
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $domains = $input->getOption('domains');
     $format = $input->getOption('format');
     $locales = $input->getOption('locales');
     if (is_null($format)) {
         throw new InvalidArgumentException('A format should be defined, e.g --format yml');
     }
     $exportCommand = new ExportCommand();
     $exportCommand->setDomains($domains === null ? false : $domains)->setFormat($format === null ? false : $format)->setLocales($locales === null ? false : $locales);
     $this->getContainer()->get('kunstmaan_translator.service.exporter.command_handler')->executeExportCommand($exportCommand);
 }
 public function testGetExportFiles()
 {
     $exportCommand = new ExportCommand();
     $exportCommand->setDomains(false)->setLocales(false)->setFormat('yml');
     $this->exportCommandHandler->getExportFiles($exportCommand);
 }