$listInstance = RecipientListFactory::createRecipientListInstance();
// We do some rudimentary checks but this might be a bit ugly
- switch ($packageData['recipient']) {
+ switch ($packageData[NetworkPackage::PACKAGE_DATA_RECIPIENT]) {
// All upper hubs, these are currently the bootstrap nodes and later on prepended list-nodes
case NetworkPackage::NETWORK_TARGET_UPPER_HUBS:
// Get all bootstrap nodes
- foreach (explode(';', $this->getConfigInstance()->getConfigEntry('hub_bootstrap_nodes')) as $node) {
+ foreach (explode(BaseHubSystem::BOOTSTRAP_NODES_SEPERATOR, $this->getConfigInstance()->getConfigEntry('hub_bootstrap_nodes')) as $node) {
// Add the entry
$listInstance->addEntry('ip_port', $node);
} // END - foreach
// This may be a direct recipient (hub's session id)
default:
- $this->partialStub('Please add code handling recipients ' . $packageData['recipient']);
+ $this->partialStub('Please add code handling recipients ' . $packageData[NetworkPackage::PACKAGE_DATA_RECIPIENT]);
break;
} // END - switch
}