/** * @param string $key * @throws \TYPO3\Flow\Persistence\Exception\IllegalObjectTypeException * @return void */ public function createAction($key) { $configuration = $this->presetRepository->findByIdentifier($key); $deployment = new Deployment(); $deployment->setConfiguration($configuration); $deployment->setClientIp($this->request->getHttpRequest()->getClientIpAddress()); $this->deploymentRepository->add($deployment); $this->addFlashMessage('Created a new deployment.'); $this->redirect('index', NULL, NULL, array('deployment' => $deployment)); }