]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/cruncher/class_BaseHubCruncher.php
Cruncher continued and rewritten to use states:
[hub.git] / application / hub / main / cruncher / class_BaseHubCruncher.php
index cbaa0e3ad861cf9da09991d6132a1a24ce960d51..39471d34dca5da6286f48f774c76a96d2714c8ed 100644 (file)
@@ -46,6 +46,19 @@ abstract class BaseHubCruncher extends BaseHubSystem implements Updateable {
        protected function __construct ($className) {
                // Call parent constructor
                parent::__construct($className);
+
+               // Init this cruncher
+               $this->initCruncher();
+       }
+
+       /**
+        * Initialize the cruncher generically
+        *
+        * @return      void
+        */
+       private function initCruncher () {
+               // Init the state
+               CruncherStateFactory::createCruncherStateInstanceByName('init', $this);
        }
 
        /**