* @return void
*/
private function initMiner () {
+ // Add own instance to registry
+ Registry::getRegistry()->addInstance('miner', $this);
+
// Init the state
MinerStateFactory::createMinerStateInstanceByName('init');
}
$this->getStateInstance()->validateMinerStateIsInit();
// Change it to 'booting'
- MinerStateFactory::createMinerStateInstanceByName('booting', $this);
+ MinerStateFactory::createMinerStateInstanceByName('booting');
}
}