]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/cruncher/class_BaseHubCruncher.php
Fixed a lot stuff for cruncher (missing methods, etc.)
[hub.git] / application / hub / main / cruncher / class_BaseHubCruncher.php
index f86c9b978d4d610d93bc00593a1647e4979cd719..76feae5d2beebbe95c50fe5df4b9f13ac68bd018 100644 (file)
@@ -57,6 +57,9 @@ abstract class BaseHubCruncher extends BaseHubSystem implements Updateable {
                // Call parent constructor
                parent::__construct($className);
 
+               // Set this cruncher instance in registry
+               Registry::getRegistry()->addInstance('cruncher', $this);
+
                // Init this cruncher
                $this->initCruncher();
        }
@@ -68,7 +71,7 @@ abstract class BaseHubCruncher extends BaseHubSystem implements Updateable {
         */
        private function initCruncher () {
                // Init the state
-               CruncherStateFactory::createCruncherStateInstanceByName('init', $this);
+               CruncherStateFactory::createCruncherStateInstanceByName('init');
        }
 
        /**