request->allParams(); $company_url_segment = Convert::raw2sql($params["Company"]); $slug = Convert::raw2sql($params["Slug"]); $query = new QueryObject(); $query->addAddCondition(QueryCriteria::equal('Slug',$slug)); $public_cloud = $this->cloud_repository->getBy($query); if(!$public_cloud) throw new NotFoundEntityException('',''); if($public_cloud->getCompany()->URLSegment != $company_url_segment) throw new NotFoundEntityException('',''); $render = new PublicCloudSapphireRender($public_cloud); return $render->draw(); } catch (Exception $ex) { return $this->httpError(404, 'Sorry that Public Cloud could not be found!.'); } } }