]> git.mxchange.org Git - city.git/commitdiff
Use more the factory.
authorRoland Haeder <roland@mxchange.org>
Mon, 29 Jun 2015 03:33:48 +0000 (05:33 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 29 Jun 2015 03:33:48 +0000 (05:33 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
application/city/main/factories/states/city/class_CityStateFactory.php
application/city/main/filter/bootstrap/init/class_CityDaemonBootstrapInitDaemonFilter.php

index 6a7794a7e75b56f24ad3cda77ce9c9c05806a35c..64c42d85a5280956a2e04faf85b88e5a5060ee0f 100644 (file)
@@ -47,7 +47,7 @@ class CityStateFactory extends ObjectFactory {
                $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() . '.');
index 842f620b69fdbae9a49f0b5b6485142b75519136..69c20ca07a09bf7a0ee5a160d3b4e4cb3da873d6 100644 (file)
@@ -56,7 +56,7 @@ class CityDaemonBootstrapInitDaemonFilter extends BaseCityFilter implements Filt
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get city instance
-               $cityInstance = Registry::getRegistry()->getInstance('city');
+               $cityInstance = CityDaemonObjectFactory::createCityDaemonInstance();
 
                // Now bootstrap the daemon
                $cityInstance->bootstrapInitCityDaemon();