Signed-off-by: Roland Haeder <roland@mxchange.org>
$stateInstance = self::createObjectByConfiguredName($className);
// Get city instance
- $cityInstance = Registry::getRegistry()->getInstance('city');
+ $cityInstance = CityDaemonObjectFactory::createCityDaemonInstance();
// Debug message
self::createDebugInstance(__CLASS__)->debugOutput('CITY-STATE-FACTORY[' . __METHOD__ . ':' . __LINE__ . ']: City state has changed from ' . $cityInstance->getPrintableState() . ' to ' . $stateInstance->getStateName() . '.');
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
// Get city instance
- $cityInstance = Registry::getRegistry()->getInstance('city');
+ $cityInstance = CityDaemonObjectFactory::createCityDaemonInstance();
// Now bootstrap the daemon
$cityInstance->bootstrapInitCityDaemon();