public function getPrivateCloud() { $company_service_id = intval($this->request->param('COMPANY_SERVICE_ID')); $private_cloud = $this->private_cloud_repository->getById($company_service_id); if (!$private_cloud) { return $this->notFound(); } return $this->ok(CloudAssembler::convertCloudToArray($private_cloud)); }
public function getCurrentPrivateCloudJson() { $private_cloud = $this->getCurrentPrivateCloud(); if ($private_cloud) { return json_encode(CloudAssembler::convertCloudToArray($private_cloud)); } }