Exemplo n.º 1
0
 /**
  * Used only in automated hosting enviroment
  */
 public function instanceCreated($params)
 {
     try {
         // Just do table updates
         erLhcoreClassUpdate::doTablesUpdate(json_decode(file_get_contents('extension/xmppservice/doc/structure.json'), true));
         erLhcoreClassExtensionXmppserviceHandler::registerInstanceRoasters(array('subdomain' => str_replace('.', '-', $params['instance']->address), 'xmpp_host' => $this->settings['xmpp_host'], 'node_api_server' => $this->settings['node_api_server'], 'handler' => $this->settings['handler'], 'rpc_server' => $this->settings['rpc_server'], 'rpc_username' => $this->settings['rpc_username'], 'rpc_password' => $this->settings['rpc_password'], 'rpc_account_host' => $this->settings['rpc_account_host']));
     } catch (Exception $e) {
         erLhcoreClassLog::write(print_r($e, true));
     }
 }