コード例 #1
0
 /**
  * @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');
 }
コード例 #2
0
 /**
  * @param SurfCaptainDeployment $surfCaptainDeployment
  * @return void
  * @throws \TYPO3\Flow\Persistence\Exception\IllegalObjectTypeException
  */
 protected function writeSurfCaptainDeployment(SurfCaptainDeployment $surfCaptainDeployment)
 {
     $this->deploymentRepository->update($surfCaptainDeployment);
     $this->persistenceManager->persistAll();
 }