// Import framework stuff
use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
use Org\Mxchange\CoreFramework\Request\Requestable;
use Org\Mxchange\CoreFramework\Response\Responseable;
$factoryInstance = new CityDaemonFactory();
// If there is no handler?
- if (Registry::getRegistry()->instanceExists('city')) {
+ if (GenericRegistry::getRegistry()->instanceExists('city')) {
// Get handler from registry
- $cityInstance = Registry::getRegistry()->getInstance('city');
+ $cityInstance = GenericRegistry::getRegistry()->getInstance('city');
} elseif (($requestInstance instanceof Requestable) && ($responseInstance instanceof Responseable)) {
// The default city-mode is from our configuration
$cityMode = $factoryInstance->getConfigInstance()->getConfigEntry('city_default_mode');
}
// Now convert the city-mode in a class name
- $className = 'Simulation' . $factoryInstance->convertToClassName($cityMode) . 'CityDaemon';
+ $className = 'Org\Mxchange\City\Daemon\Simulation\Simulation' . $factoryInstance->convertToClassName($cityMode) . 'CityDaemon';
// Get the city instance
$cityInstance = ObjectFactory::createObjectByName($className, array($requestInstance));
// Get a registry
- $applicationInstance = Registry::getRegistry()->getInstance('app');
+ $applicationInstance = GenericRegistry::getRegistry()->getInstance('application');
// Set the app instance
$cityInstance->setApplicationInstance($applicationInstance);