Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     if ($this->machine->isRunning()) {
         $this->machine->stop();
     }
     $this->machine->start();
 }
Ejemplo n.º 2
0
 private function restartMachine()
 {
     if ($this->machine->isRunning()) {
         $this->machine->stop();
     }
     $this->machine->start();
 }