/** * @param array * @return \Lightwerk\SurfCaptain\Domain\Model\Deployment */ protected function createFromConfiguration($configuration) { $repositoryUrl = $configuration['applications'][0]['options']['repositoryUrl']; $repository = $this->driverComposite->getRepository($repositoryUrl); $deployment = new Deployment(); $deployment->setRepositoryIdentifier($repository->getIdentifier()); $deployment->setRepositoryUrl($repositoryUrl); $deployment->setStaticConfiguration($configuration); // throw the clientIp away? $deployment->setClientIp(''); return $deployment; }