/** * {@inheritdoc} */ protected function execute(InputInterface $input, OutputInterface $output) { try { $this->projectManager->start($this->project); } catch (ProjectException $e) { $output->writeln('<error>' . $e->getMessage() . '</error>'); return 1; } return $this->getApplication()->run(new ArrayInput(['command' => 'ps']), $output); }
/** * {@inheritdoc} */ protected function execute(InputInterface $input, OutputInterface $output) { $this->projectManager->stop($this->project); }
/** * {@inheritdoc} */ public function reset(Project $project, array $containers = []) { return $this->projectManager->reset($project, $containers); }
/** * {@inheritdoc} */ protected function execute(InputInterface $input, OutputInterface $output) { $containers = $input->getArgument('container'); $this->projectManager->reset($this->project, $containers); $output->writeln(['Container(s) successfully reset.']); }