wrenchboard = new \App\Models\BackendModel(); $this->current_env = $this->getSiteConfigurations("system.live"); $this->primary_image_sever = $this->getSiteConfigurations("system.primary_image_sever"); $this->server_tag = $this->getSiteConfigurations("system.server_tag"); } public function signUpCountry(){ $in["action"] = WRENCHBOARD_SIGNUP_COUNTRY; $endpoint = "SIGNUP_COUNTRY-"; $out = $this->getCache($endpoint); // try find in cache if ( empty($out) || !is_array($out)){ $ret = $this->wrenchboard->wrenchboard_api($in, $out); $out['internal_return'] = $ret; $this->saveCache($endpoint,$out,$timeLine=15000); } // $this->doCacheStep($in, $out); $final_out = ( new \App\Models\ResultFormatter() )->processOutJson($in, $out); $final_out["environment"] = $this->current_env + 0; $final_out["session_image_server"] = $this->primary_image_sever; $final_out["server_tag"] = $this->server_tag; $final_out["language"] = "en"; $final_out["ip_loc"] = $this->getIpData(); $final_out["current_version"] = 20240306; $final_out["family_types"] = $this->familyTypes(); $final_out["history_types"] = $this->historyTypes(); //return json_encode( ( new \App\Models\ResultFormatter() )->processOutJson($in, $out)); return json_encode( $final_out ); } }