Ejemplo n.º 1
0
 private function cleanup()
 {
     $this->IOHelper->writeln("Cleanup old files, clearing caches...");
     $this->deleteDummyPlugins();
     $this->cleanupFiles();
     $this->cleanupCache();
 }
Ejemplo n.º 2
0
 /**
  * @param  string[] $currencies
  * @return string currency
  */
 protected function askForCurrencyInformation($currencies)
 {
     $this->IOHelper->cls();
     $this->IOHelper->writeln("<info>=== Currency Information ===</info>");
     $question = new ChoiceQuestion("Please select your shop currency", $currencies);
     $question->setErrorMessage('Currency %s is invalid.');
     $currency = $this->IOHelper->ask($question);
     return $currency;
 }