Signed-off-by: Roland Haeder <roland@mxchange.org>
// If there is no handler?
if (Registry::getRegistry()->instanceExists('node')) {
// Get handler from registry
- $nodeInstance = NodeObjectFactory::createNodeInstance();
+ $nodeInstance = Registry::getRegistry()->getInstance('node');
} elseif (($requestInstance instanceof Requestable) && ($responseInstance instanceof Responseable)) {
// The default node-mode is from our configuration
$nodeMode = $factoryInstance->getConfigInstance()->getConfigEntry('node_default_mode');