]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/factories/chain/class_PackageFilterChainFactory.php
The package hash needs to be copied to the message array as it needs to be
[hub.git] / application / hub / main / factories / chain / class_PackageFilterChainFactory.php
index 579c7293e4883f68f85ee289bbb9cb5626c1e3a4..e07b77126a683eaf717e4eb62d583b55dce42feb 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2014 Hub Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Hub Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -64,6 +64,12 @@ class PackageFilterChainFactory extends ObjectFactory {
                                $chainInstance->addFilter($filterInstance);
                        } // END - foreach
 
+                       // Add filter for handling hash to miner queue
+                       $filterInstance = self::createObjectByConfiguredName('package_hash_to_miner_filter');
+
+                       // Add this post-filter to the chain
+                       $chainInstance->addPostFilter($filterInstance);
+
                        // Add the finished chain to the registry
                        Registry::getRegistry()->addInstance($registryKey, $chainInstance);
                }