getMessage(); } // todo: validate that the current Namaste config has a migration broker running... $objMig = new gacBrokerClient(BROKER_QUEUE_M, basename(__FILE__)); if (!$objMig->status) { echo ERROR_TEMPLATE_INSTANTIATE . BROKER_QUEUE_M . $eos; }else { $brokerPayload = [BROKER_REQUEST => BROKER_REQUEST_MIGRATION, BROKER_DATA => $data, BROKER_META_DATA => $meta]; $result = $objMig->call(gzcompress(json_encode($brokerPayload))); $result = json_decode(gzuncompress($result), true); if ($result[PAYLOAD_STATE] == true) var_export($result[PAYLOAD_RESULTS]); else var_export($result[PAYLOAD_DIAGNOSTICS]); } if (is_object($objMig)) $objMig->__destruct(); unset($objMig);