Signed-off-by: Roland Haeder <roland@mxchange.org>
// Get node instance
$nodeInstance = NodeObjectFactory::createNodeInstance();
+ // Debug message
+ self::createDebugInstance(__CLASS__)->debugOutput('POOL[' . __METHOD__ . ':' . __LINE__ . ':] Setting node ...');
+
// ... and set it here
$handlerInstance->setNodeInstance($nodeInstance);
// Get new instance
$listenerInstance = new TcpListener();
- // Set the application instance
- $listenerInstance->setNodeInstance($nodeInstance);
-
// Return the prepared instance
return $listenerInstance;
}
// Get new instance
$listenerInstance = new UdpListener();
- // Set the application instance
- $listenerInstance->setNodeInstance($nodeInstance);
-
// Return the prepared instance
return $listenerInstance;
}
// Get new instance
$listenerInstance = new DefaultListenerPool();
+ // Debug message
+ self::createDebugInstance(__CLASS__)->debugOutput('POOL[' . __METHOD__ . ':' . __LINE__ . ':] Setting node ...');
+
// Set the application instance
$listenerInstance->setNodeInstance($nodeInstance);