$handlerInstance->registerTask('package_decoder', $taskInstance);
// Generate DHT initialization task
- $taskInstance = ObjectFactory::createObjectByConfiguredName('node_dht_bootstrap_task_class');
+ $taskInstance = ObjectFactory::createObjectByConfiguredName('node_dht_init_task_class');
// Register it as well
- $handlerInstance->registerTask('dht_bootstrap', $taskInstance);
+ $handlerInstance->registerTask('dht_init', $taskInstance);
// Generate DHT query task
$taskInstance = ObjectFactory::createObjectByConfiguredName('node_dht_query_task_class');
$handlerInstance->registerTask('ping', $taskInstance);
// Put the task handler in registry
- Registry::getRegistry()->addInstance('task', $handlerInstance);
+ Registry::getRegistry()->addInstance('task_handler', $handlerInstance);
}
}