/** * @param Deployment $deployment * @return void */ public function updateAction(Deployment $deployment) { // ToDo: Just status can be changed to canceled if it was waiting before! $this->deploymentRepository->update($deployment); $this->addFlashMessage('Updated a deployment.'); $this->redirect('index'); }
/** * @param SurfCaptainDeployment $surfCaptainDeployment * @return void * @throws \TYPO3\Flow\Persistence\Exception\IllegalObjectTypeException */ protected function writeSurfCaptainDeployment(SurfCaptainDeployment $surfCaptainDeployment) { $this->deploymentRepository->update($surfCaptainDeployment); $this->persistenceManager->persistAll(); }