static function boot($mainClass, $onComplete, $onError = null) { zcale_Core::$bootstrap = zcale_core_boot_targets_ServerBoot::getInstance(); zcale_Core::$bootstrap->event->addListener(zcale_Core::$bootstrap->eventKeys->complete, array(new _hx_lambda(array(&$mainClass, &$onComplete, &$onError), "zcale_Core_0"), 'execute')); zcale_Core::$bootstrap->event->addListener(zcale_Core::$bootstrap->eventKeys->error, array(new _hx_lambda(array(&$mainClass, &$onComplete, &$onError), "zcale_Core_1"), 'execute')); zcale_Core::$bootstrap->boot($mainClass); }
static function getInstance() { if (zcale_core_boot_targets_ServerBoot::$instance === null) { zcale_core_boot_targets_ServerBoot::$instance = new zcale_core_boot_targets_ServerBoot(); } return zcale_core_boot_targets_ServerBoot::$instance; }