Author: Paweł Jędrzejewski (pawel@sylius.org)
Inheritance: extends AbstractInstallCommand
Example #1
0
 /**
  * @param string $name
  */
 private function iExecuteCommandAndConfirm($name)
 {
     $this->dialog = $this->command->getHelper('dialog');
     $inputString = 'y' . PHP_EOL;
     $this->dialog->setInputStream($this->getInputStream($inputString));
     $this->tester->execute(['command' => $name]);
 }
Example #2
0
 /**
  * @param string $name
  */
 private function iExecuteCommandAndConfirm($name)
 {
     $this->questionHelper = $this->command->getHelper('question');
     $inputString = 'y' . PHP_EOL;
     $this->questionHelper->setInputStream($this->getInputStream($inputString));
     try {
         $this->tester->execute(['command' => $name]);
     } catch (\Exception $e) {
     }
 }