This interface can be moved to 'core' + removed parameter nodeInstance.
[hub.git] / application / hub / classes / nodes / class_BaseHubNode.php
index 1dff70eea9b166becf1ecf95f0b33ebb619caec0..0979c889bb210926b653c2baf859e961d90d13d9 100644 (file)
@@ -532,7 +532,7 @@ class BaseHubNode extends BaseHubSystem implements Updateable, AddableCriteria {
                $this->setListenerPoolInstance(ObjectFactory::createObjectByConfiguredName('listener_pool_class', array($this)));
 
                // Get an instance of the low-level listener
-               $listenerInstance = ObjectFactory::createObjectByConfiguredName('tcp_listener_class', array($this));
+               $listenerInstance = ObjectFactory::createObjectByConfiguredName('tcp_listener_class');
 
                // Setup address and port
                $listenerInstance->setListenAddressByConfiguration('node_listen_addr');
@@ -559,7 +559,7 @@ class BaseHubNode extends BaseHubSystem implements Updateable, AddableCriteria {
                $this->getListenerPoolInstance()->addListener($decoratorInstance);
 
                // Get an instance of the low-level listener
-               $listenerInstance = ObjectFactory::createObjectByConfiguredName('udp_listener_class', array($this));
+               $listenerInstance = ObjectFactory::createObjectByConfiguredName('udp_listener_class');
 
                // Setup address and port
                $listenerInstance->setListenAddressByConfiguration('node_listen_addr');