// Call parent constructor
parent::__construct($className);
+ // Set this cruncher instance in registry
+ Registry::getRegistry()->addInstance('cruncher', $this);
+
// Init this cruncher
$this->initCruncher();
}
*/
private function initCruncher () {
// Init the state
- CruncherStateFactory::createCruncherStateInstanceByName('init', $this);
+ CruncherStateFactory::createCruncherStateInstanceByName('init');
}
/**