]> git.mxchange.org Git - hub.git/commitdiff
Use factory instead of direct registry key.
authorRoland Haeder <roland@mxchange.org>
Thu, 27 Aug 2015 01:11:26 +0000 (03:11 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 27 Aug 2015 01:11:26 +0000 (03:11 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
application/hub/classes/filter/activation/node/class_NodeActivation
application/hub/classes/filter/bootstrap/node/class_NodeBootstrap
application/hub/classes/filter/class_
application/hub/classes/filter/shutdown/node/class_NodeShutdown
application/hub/classes/listener/tcp/class_TcpListener.php

index f64d0ab076b0980a0898c32e4fc81b4b98608966..69824758840292e9519c0f313e24402ca386c1d9 100644 (file)
@@ -55,7 +55,7 @@ class HubActivation???Filter extends BaseNodeFilter implements Filterable {
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get node instance
-               $nodeInstance = Registry::getRegistry()->getInstance('node');
+               $nodeInstance = NodeObjectFactory::createNodeInstance($requestInstance, $responseInstance);
 
                // Now do something
                $this->partialStub('Please implement this step.');
index 5371b8ae75a07a0cf57180648dfd8c15446c095c..d0963daf04102ecd454e552ebb611c7b75b9b7c1 100644 (file)
@@ -55,7 +55,7 @@ class NodeBootstrap???Filter extends BaseNodeFilter implements Filterable {
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get node instance
-               $nodeInstance = Registry::getRegistry()->getInstance('node');
+               $nodeInstance = NodeObjectFactory::createNodeInstance($requestInstance, $responseInstance);
 
                // Now do something
                $this->partialStub('Please implement this step.');
index a3605aa8c7747cd44a9529e39a0e666644bacb0d..a19a0646bd5240c318e3154d5c1238af07f67943 100644 (file)
@@ -56,7 +56,7 @@ class Hub!!!???Filter extends BaseHubFilter implements Filterable {
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get node instance
-               $nodeInstance = Registry::getRegistry()->getInstance('node');
+               $nodeInstance = NodeObjectFactory::createNodeInstance($requestInstance, $responseInstance);
 
                // Now do something
                $this->partialStub('Please implement this step.');
index 85398da88465d866d167e3726d2950ab2a33abdc..9bf68cae802eee751e780acda3d20f8dae21318b 100644 (file)
@@ -56,7 +56,7 @@ class HubShutdown???Filter extends BaseNodeFilter implements Filterable {
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get node instance
-               $nodeInstance = Registry::getRegistry()->getInstance('node');
+               $nodeInstance = NodeObjectFactory::createNodeInstance($requestInstance, $responseInstance);
 
                // Now do something
                $this->partialStub('Please implement this step.');
index d3fbcf35c6dfb11a391de971372d47c781842f1c..4d01c5a2c72507bd7e871757a8ab317bc548dc36 100644 (file)
@@ -280,7 +280,7 @@ class TcpListener extends BaseListener implements Listenable {
                        } // END - if
 
                        // Get node instance
-                       $nodeInstance = Registry::getRegistry()->getInstance('node');
+                       $nodeInstance = NodeObjectFactory::createNodeInstance();
 
                        // Create a faked package data array
                        $packageData = array(