/** * @param string $identifier * @return void */ public function deleteCommand($identifier) { $deployment = $this->persistenceManager->getObjectByIdentifier($identifier, 'Lightwerk\\SurfCaptain\\Domain\\Model\\Deployment'); if ($deployment instanceof Deployment) { $this->deploymentRepository->remove($deployment); $this->outputLine('deployment removed'); } else { $this->outputLine('no deployment found'); } }