]> git.mxchange.org Git - city.git/commitdiff
Continued: master
authorRoland Häder <roland@mxchange.org>
Sat, 25 Feb 2023 13:23:10 +0000 (14:23 +0100)
committerRoland Häder <roland@mxchange.org>
Mon, 15 Jan 2024 21:37:59 +0000 (22:37 +0100)
- changed GenericRegistry to ObjectRegistry
- updated 'core' framework

20 files changed:
application/city/classes/city_daemon/class_BaseCityDaemon.php
application/city/classes/city_daemon/default/class_SimulationDefaultCityDaemon.php
application/city/classes/commands/console/class_CityConsoleDaemonCommand.php
application/city/classes/commands/html/class_CityHtmlConfirmCommand.php
application/city/classes/commands/html/class_CityHtmlLoginAreaCommand.php
application/city/classes/commands/html/class_CityHtmlLoginCommand.php
application/city/classes/commands/html/class_CityHtmlLoginFailedCommand.php
application/city/classes/commands/html/class_CityHtmlLogoutDoneCommand.php
application/city/classes/commands/html/class_CityHtmlResendLinkCommand.php
application/city/classes/database/frontend/city/class_CityInformationDatabaseFrontend.php
application/city/classes/database/frontend/region/class_RegionInformationDatabaseWrapper.php
application/city/classes/database/frontend/region_map/class_RegionMapDatabaseFrontend.php
application/city/classes/factories/city_daemon/class_CityDaemonFactory.php
application/city/classes/factories/manager/class_ManagerFactory.php
application/city/classes/filter/shutdown/city/class_CityDaemonShutdownTaskHandlerFilter.php
application/city/classes/filter/task/city_daemon/class_CityDaemonTaskHandlerInitializerFilter.php
application/city/classes/login/class_CityGuestLogin.php
application/city/classes/login/class_CityUserLogin.php
application/city/classes/login/helper/class_CityLoginHelper.php
core

index c8eeaf34e56b8459fc8d603e63a7853cab41aed9..7b104e04ceb8186d7bdbdc85cb92db5208df2f51 100644 (file)
@@ -18,7 +18,7 @@ use Org\Mxchange\CoreFramework\Factory\Database\Frontend\DatabaseFrontendFactory
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
 use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
 use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 use Org\Mxchange\CoreFramework\Traits\Crypto\CryptoTrait;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 use Org\Mxchange\CoreFramework\Traits\Crypto\CryptoTrait;
@@ -87,7 +87,7 @@ abstract class BaseCityDaemon extends BaseCitySystem implements Updateable, Adda
                $this->setCryptoInstance($cryptoInstance);
 
                // Add own instance to registry
                $this->setCryptoInstance($cryptoInstance);
 
                // Add own instance to registry
-               GenericRegistry::getRegistry()->addInstance('city', $this);
+               ObjectRegistry::getRegistry('factory')->addInstance('city', $this);
 
                // Init state which sets the state to 'init'
                $this->initState();
 
                // Init state which sets the state to 'init'
                $this->initState();
@@ -190,7 +190,7 @@ abstract class BaseCityDaemon extends BaseCitySystem implements Updateable, Adda
         */
        public function activateCityDaemon (Requestable $requestInstance, Responseable $responseInstance) {
                // Get the controller here
         */
        public function activateCityDaemon (Requestable $requestInstance, Responseable $responseInstance) {
                // Get the controller here
-               $controllerInstance = GenericRegistry::getRegistry()->getInstance('controller');
+               $controllerInstance = ObjectRegistry::getRegistry('generic')->getInstance('controller');
 
                // Run all filters for the City activation
                $controllerInstance->executeActivationFilters($requestInstance, $responseInstance);
 
                // Run all filters for the City activation
                $controllerInstance->executeActivationFilters($requestInstance, $responseInstance);
index dcfe72600b15d63da08535fe74f00229724627dc..b6777d4de9d0ed1233e5eefa739516af1aac2b03 100644 (file)
@@ -11,7 +11,6 @@ use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Handler\Task\HandleableTask;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
 use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
 use Org\Mxchange\CoreFramework\Handler\Task\HandleableTask;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
 use Org\Mxchange\CoreFramework\Middleware\Debug\DebugMiddleware;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 
index 8b86db276f43a40deb60e56d623fda44835a4af3..b399a60487fddf56c9951d38b5ab487352190b05 100644 (file)
@@ -11,7 +11,7 @@ use Org\Mxchange\CoreFramework\Command\Commandable;
 use Org\Mxchange\CoreFramework\Controller\Controller;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
 use Org\Mxchange\CoreFramework\Controller\Controller;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
 use Org\Mxchange\CoreFramework\Response\Responseable;
@@ -102,7 +102,7 @@ class CityConsoleDaemonCommand extends BaseCommand implements Commandable {
                $cityInstance->activateCityDaemon($requestInstance, $responseInstance);
 
                // Get task handler instance
                $cityInstance->activateCityDaemon($requestInstance, $responseInstance);
 
                // Get task handler instance
-               $handlerInstance = GenericRegistry::getRegistry()->getInstance('task_handler');
+               $handlerInstance = ObjectRegistry::getRegistry('generic')->getInstance('task_handler');
 
                // Debug message
                self::createDebugInstance(__CLASS__, __LINE__)->debugMessage('MAIN: --- Entering main loop. ---');
 
                // Debug message
                self::createDebugInstance(__CLASS__, __LINE__)->debugMessage('MAIN: --- Entering main loop. ---');
index 77b3d41d44f3f9dc0fbffa10f905db6333d18689..806ac8550da9b1f758047494e43ceeebf8196e73 100644 (file)
@@ -11,7 +11,7 @@ use Org\Mxchange\CoreFramework\Database\Frontend\User\UserDatabaseFrontend;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Generic\NullPointerException;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Generic\NullPointerException;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
 use Org\Mxchange\CoreFramework\Response\Responseable;
@@ -117,7 +117,7 @@ class CityHtmlConfirmCommand extends BaseCommand implements Commandable {
 
                // Get user instance
                try {
 
                // Get user instance
                try {
-                       $userInstance = GenericRegistry::getRegistry()->getInstance('user');
+                       $userInstance = ObjectRegistry::getRegistry('generic')->getInstance('user');
                } catch (NullPointerException $e) {
                        // Not found user, e.g. when the user is somehow invalid
                        $responseInstance->redirectToConfiguredUrl('html_cmd_user_is_null');
                } catch (NullPointerException $e) {
                        // Not found user, e.g. when the user is somehow invalid
                        $responseInstance->redirectToConfiguredUrl('html_cmd_user_is_null');
index d48e4af7f8eb753cc756041673ceb847040d3185..a0de880d87e794c9fe4966c6fc903e55cc6eca8b 100644 (file)
@@ -7,7 +7,7 @@ use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 use Org\Mxchange\CoreFramework\Controller\Controller;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
 use Org\Mxchange\CoreFramework\Controller\Controller;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
 use Org\Mxchange\CoreFramework\Response\Responseable;
@@ -88,7 +88,7 @@ class CityHtmlLoginAreaCommand extends BaseCommand implements Commandable {
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get the action instance from registry
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get the action instance from registry
-               $actionInstance = GenericRegistry::getRegistry()->getInstance('action');
+               $actionInstance = ObjectRegistry::getRegistry('generic')->getInstance('action');
 
                // Do we have an action here?
                if ($actionInstance instanceof PerformableAction) {
 
                // Do we have an action here?
                if ($actionInstance instanceof PerformableAction) {
@@ -178,7 +178,7 @@ class CityHtmlLoginAreaCommand extends BaseCommand implements Commandable {
                $actionInstance = NULL;
 
                // Get registry
                $actionInstance = NULL;
 
                // Get registry
-               $registryInstance = GenericRegistry::getRegistry();
+               $registryInstance = ObjectRegistry::getRegistry('generic');
 
                // Get our application instance from the registry
                $applicationInstance = $registryInstance->getInstance('application');
 
                // Get our application instance from the registry
                $applicationInstance = $registryInstance->getInstance('application');
@@ -205,7 +205,7 @@ class CityHtmlLoginAreaCommand extends BaseCommand implements Commandable {
                $actionInstance->addExtraFilters($controllerInstance, $requestInstance);
 
                // Remember this action in registry
                $actionInstance->addExtraFilters($controllerInstance, $requestInstance);
 
                // Remember this action in registry
-               GenericRegistry::getRegistry()->addInstance('action', $actionInstance);
+               ObjectRegistry::getRegistry('generic')->addInstance('action', $actionInstance);
        }
 
 }
        }
 
 }
index 42e1206615b92f8d571d56d7eddef4bf3b23e3d2..bc8e3d49073d5e6f9d9e491aef7e53b7d5229275 100644 (file)
@@ -9,7 +9,7 @@ use Org\Mxchange\CoreFramework\Command\Commandable;
 use Org\Mxchange\CoreFramework\Controller\Controller;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
 use Org\Mxchange\CoreFramework\Controller\Controller;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
@@ -74,7 +74,7 @@ class CityHtmlLoginCommand extends BaseCommand implements Commandable, Registera
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Set request instance as extra instance
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Set request instance as extra instance
-               GenericRegistry::getRegistry()->addInstance('extra', $this);
+               ObjectRegistry::getRegistry('generic')->addInstance('extra', $this);
 
                // Get the application instance
                $applicationInstance = ApplicationHelper::getSelfInstance();
 
                // Get the application instance
                $applicationInstance = ApplicationHelper::getSelfInstance();
index 5076e6797bff6568818e18c54d36ed1c33683bf0..52248e96ad4ec7076ae0bed47ac0afafd64b2a86 100644 (file)
@@ -9,7 +9,6 @@ use Org\Mxchange\CoreFramework\Command\Commandable;
 use Org\Mxchange\CoreFramework\Controller\Controller;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
 use Org\Mxchange\CoreFramework\Controller\Controller;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
 use Org\Mxchange\CoreFramework\Response\Responseable;
index 32afecee3aaaee252f8828c1194ac47103955a31..49477462b747c043fcbce65b17e9ba000d9aba12 100644 (file)
@@ -9,7 +9,6 @@ use Org\Mxchange\CoreFramework\Command\Commandable;
 use Org\Mxchange\CoreFramework\Controller\Controller;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
 use Org\Mxchange\CoreFramework\Controller\Controller;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
 use Org\Mxchange\CoreFramework\Response\Responseable;
index 3893083a7b47e2dc4a848152db64a5054ec6495d..0a827ba1a4058ea644521f370a8ff8d20d966a47 100644 (file)
@@ -10,7 +10,7 @@ use Org\Mxchange\CoreFramework\Controller\Controller;
 use Org\Mxchange\CoreFramework\Database\Frontend\User\UserDatabaseFrontend;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
 use Org\Mxchange\CoreFramework\Database\Frontend\User\UserDatabaseFrontend;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
 use Org\Mxchange\CoreFramework\Response\Responseable;
@@ -74,7 +74,7 @@ class CityHtmlResendLinkCommand extends BaseCommand implements Commandable {
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get user instance from registry
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get user instance from registry
-               $userInstance = GenericRegistry::getRegistry()->getInstance('user');
+               $userInstance = ObjectRegistry::getRegistry('generic')->getInstance('user');
 
                // Get an application instance
                $applicationInstance = ApplicationHelper::getSelfInstance();
 
                // Get an application instance
                $applicationInstance = ApplicationHelper::getSelfInstance();
index 6f355e8717fda0d526d5fac77de0f3f43ce9c90d..0eff8572ed066e23cb665204a62f85f7c5eb2cca 100644 (file)
@@ -11,7 +11,7 @@ use Org\Mxchange\City\Manager\City\ManageableCity;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Database\Frontend\BaseDatabaseFrontend;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Database\Frontend\BaseDatabaseFrontend;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 
@@ -146,7 +146,7 @@ class CityInformationDatabaseFrontend extends BaseDatabaseFrontend implements Ci
         */
        public function ifUserHasFoundedCity () {
                // Get user instance
         */
        public function ifUserHasFoundedCity () {
                // Get user instance
-               $userInstance = GenericRegistry::getRegistry()->getInstance('user');
+               $userInstance = ObjectRegistry::getRegistry('generic')->getInstance('user');
 
                // Now get a search criteria instance
                $searchInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class');
 
                // Now get a search criteria instance
                $searchInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class');
@@ -224,7 +224,7 @@ class CityInformationDatabaseFrontend extends BaseDatabaseFrontend implements Ci
                assert(!$this->ifCityExists($cityName));
 
                // Get user instance
                assert(!$this->ifCityExists($cityName));
 
                // Get user instance
-               $userInstance = GenericRegistry::getRegistry()->getInstance('user');
+               $userInstance = ObjectRegistry::getRegistry('generic')->getInstance('user');
 
                // Get a dataset instance
                $dataSetInstance = ObjectFactory::createObjectByConfiguredName('dataset_criteria_class', array(self::DB_TABLE_CITY_INFORMATION));
 
                // Get a dataset instance
                $dataSetInstance = ObjectFactory::createObjectByConfiguredName('dataset_criteria_class', array(self::DB_TABLE_CITY_INFORMATION));
index 928ce549853aa1999506033465323b82979e71e2..a9b50a86f6309edd9891681c4bdc4353dbcd95eb 100644 (file)
@@ -9,7 +9,7 @@ use Org\Mxchange\City\Factory\Manager\ManagerFactory;
 use Org\Mxchange\CoreFramework\Database\Frontend\BaseDatabaseFrontend;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
 use Org\Mxchange\CoreFramework\Database\Frontend\BaseDatabaseFrontend;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 // Import SPL stuff
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 // Import SPL stuff
@@ -98,7 +98,7 @@ class RegionInformationDatabaseFrontend extends BaseDatabaseFrontend implements
        public function ifUserHasCreatedRegion () {
                // Get user instance
                /* NOISY-DEBUG */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('REGION-INFORMATION-DATABASE-WRAPPER: CALLED!');
        public function ifUserHasCreatedRegion () {
                // Get user instance
                /* NOISY-DEBUG */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('REGION-INFORMATION-DATABASE-WRAPPER: CALLED!');
-               $userInstance = GenericRegistry::getRegistry()->getInstance('user');
+               $userInstance = ObjectRegistry::getRegistry('generic')->getInstance('user');
 
                // Now get a search criteria instance
                $searchInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class');
 
                // Now get a search criteria instance
                $searchInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class');
@@ -197,7 +197,7 @@ class RegionInformationDatabaseFrontend extends BaseDatabaseFrontend implements
                }
 
                // Get user instance
                }
 
                // Get user instance
-               $userInstance = GenericRegistry::getRegistry()->getInstance('user');
+               $userInstance = ObjectRegistry::getRegistry('generic')->getInstance('user');
 
                // Get a dataset instance
                $dataSetInstance = ObjectFactory::createObjectByConfiguredName('dataset_criteria_class', [self::DB_TABLE_REGION_INFORMATION]);
 
                // Get a dataset instance
                $dataSetInstance = ObjectFactory::createObjectByConfiguredName('dataset_criteria_class', [self::DB_TABLE_REGION_INFORMATION]);
index 61ad80323e7cee5e0f07c3c4fecc2df32a2cc141..1af9696acfd7ca3f02d051ca8bb4c13db60ca868 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Mxchange\City\Database\Frontend\Region;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Database\Frontend\BaseDatabaseFrontend;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Database\Frontend\BaseDatabaseFrontend;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 
 /**
@@ -89,7 +89,7 @@ class RegionMapDatabaseFrontend extends BaseDatabaseFrontend implements RegionMa
                assert(!$this->ifRegionExists($regionName));
 
                // Get user instance
                assert(!$this->ifRegionExists($regionName));
 
                // Get user instance
-               $userInstance = GenericRegistry::getRegistry()->getInstance('user');
+               $userInstance = ObjectRegistry::getRegistry('generic')->getInstance('user');
 
                // Get a dataset instance
                $dataSetInstance = ObjectFactory::createObjectByConfiguredName('dataset_criteria_class', array(self::DB_TABLE_REGION_MAP));
 
                // Get a dataset instance
                $dataSetInstance = ObjectFactory::createObjectByConfiguredName('dataset_criteria_class', array(self::DB_TABLE_REGION_MAP));
index bbe7c7e2ac0d5372c27fb46cf0249d891ec06700..4ffa98373f281da747e556c6576c9bac91b41be8 100644 (file)
@@ -7,7 +7,7 @@ use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -57,9 +57,9 @@ class CityDaemonFactory extends BaseFactory {
                $factoryInstance = new CityDaemonFactory();
 
                // If there is no handler?
                $factoryInstance = new CityDaemonFactory();
 
                // If there is no handler?
-               if (GenericRegistry::getRegistry()->instanceExists('city')) {
+               if (ObjectRegistry::getRegistry('factory')->instanceExists('city')) {
                        // Get handler from registry
                        // Get handler from registry
-                       $cityInstance = GenericRegistry::getRegistry()->getInstance('city');
+                       $cityInstance = ObjectRegistry::getRegistry('factory')->getInstance('city');
                } elseif (($requestInstance instanceof Requestable) && ($responseInstance instanceof Responseable)) {
                        // The default city-mode is from our configuration
                        $cityMode = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('city_default_mode');
                } elseif (($requestInstance instanceof Requestable) && ($responseInstance instanceof Responseable)) {
                        // The default city-mode is from our configuration
                        $cityMode = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('city_default_mode');
index f9b5a83bd176acb0b4e9b62018645388629ac352..20295e4146ea534065faa6b34dd2a010ae7fc4ba 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Mxchange\City\Factory\Manager;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\BaseFactory;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 
 /**
  * A factory class for managers
 
 /**
  * A factory class for managers
@@ -54,15 +54,15 @@ class ManagerFactory extends BaseFactory {
                $key = $type . '_manager';
 
                // If there is no handler?
                $key = $type . '_manager';
 
                // If there is no handler?
-               if (GenericRegistry::getRegistry()->instanceExists($key)) {
+               if (ObjectRegistry::getRegistry('factory')->instanceExists($key)) {
                        // Get handler from registry
                        // Get handler from registry
-                       $managerInstance = GenericRegistry::getRegistry()->getInstance($key);
+                       $managerInstance = ObjectRegistry::getRegistry('factory')->getInstance($key);
                } else {
                        // Get the proper manager instance
                        $managerInstance = ObjectFactory::createObjectByConfiguredName($key . '_class');
 
                        // Add it to the registry
                } else {
                        // Get the proper manager instance
                        $managerInstance = ObjectFactory::createObjectByConfiguredName($key . '_class');
 
                        // Add it to the registry
-                       GenericRegistry::getRegistry()->addInstance($key, $managerInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance($key, $managerInstance);
                }
 
                // Return the instance
                }
 
                // Return the instance
index f577159ffe9d8ec3390cc9bdf9ad75d3660c4d23..1cec3e07e6387b8793448679577cca7c6eee6dfa 100644 (file)
@@ -7,7 +7,7 @@ use Org\Mxchange\City\Filter\BaseCityFilter;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -68,7 +68,7 @@ class CityDaemonShutdownTaskHandlerFilter extends BaseCityFilter implements Filt
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get task handler instance
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get task handler instance
-               $handlerInstance = GenericRegistry::getRegistry()->getInstance('task_handler');
+               $handlerInstance = ObjectRegistry::getRegistry('generic')->getInstance('task_handler');
 
                // Shutdown the task manager and all its registered tasks
                $handlerInstance->doShutdown();
 
                // Shutdown the task manager and all its registered tasks
                $handlerInstance->doShutdown();
index efafcc64c980eeb484876307a8090c77245a9f61..be67dfaf0d9094dcb452c1aee4618901b64cad19 100644 (file)
@@ -9,7 +9,7 @@ use Org\Mxchange\Factory\City\Daemon\CityDaemonFactory;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Filter\Filterable;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -76,7 +76,7 @@ class CityDaemonTaskHandlerInitializerFilter extends BaseCityFilter implements F
                $handlerInstance = ObjectFactory::createObjectByConfiguredName('task_handler_class');
 
                // Put the task handler in registry
                $handlerInstance = ObjectFactory::createObjectByConfiguredName('task_handler_class');
 
                // Put the task handler in registry
-               GenericRegistry::getRegistry()->addInstance('task_handler', $handlerInstance);
+               ObjectRegistry::getRegistry('generic')->addInstance('task_handler', $handlerInstance);
 
                // Prepare a city map expansion task
                $taskInstance = ObjectFactory::createObjectByConfiguredName('city_daemon_map_expander_task_class');
 
                // Prepare a city map expansion task
                $taskInstance = ObjectFactory::createObjectByConfiguredName('city_daemon_map_expander_task_class');
index b7bb8ae6ae7f778dac69c011670e4285178a7b2c..86b83e5c5b97f2c09d460b424509dc6e0cd88a13 100644 (file)
@@ -8,7 +8,7 @@ use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Factory\User\UserFactory;
 use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Factory\User\UserFactory;
 use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
@@ -80,7 +80,7 @@ class CityGuestLogin extends BaseFrameworkSystem implements LoginableUser, Regis
                $userInstance = UserFactory::createUserByRequest($requestInstance);
 
                // Remember this new instance in registry
                $userInstance = UserFactory::createUserByRequest($requestInstance);
 
                // Remember this new instance in registry
-               GenericRegistry::getRegistry()->addInstance('user', $userInstance);
+               ObjectRegistry::getRegistry('generic')->addInstance('user', $userInstance);
 
                // Is the password correct?
                if ($userInstance->ifPasswordHashMatches($requestInstance) === FALSE) {
 
                // Is the password correct?
                if ($userInstance->ifPasswordHashMatches($requestInstance) === FALSE) {
@@ -116,7 +116,7 @@ class CityGuestLogin extends BaseFrameworkSystem implements LoginableUser, Regis
         */
        public function ifLoginWasSuccessfull () {
                // Is the registry key there?
         */
        public function ifLoginWasSuccessfull () {
                // Is the registry key there?
-               $loginDone = (GenericRegistry::getRegistry()->getInstance('login') instanceof Registerable);
+               $loginDone = (ObjectRegistry::getRegistry('generic')->getInstance('login') instanceof Registerable);
 
                // Return the result
                return $loginDone;
 
                // Return the result
                return $loginDone;
@@ -139,7 +139,7 @@ class CityGuestLogin extends BaseFrameworkSystem implements LoginableUser, Regis
                        $plainPassword = FrameworkBootstrap::getRequestInstance()->getRequestElement($requestKey);
 
                        // Get user instance
                        $plainPassword = FrameworkBootstrap::getRequestInstance()->getRequestElement($requestKey);
 
                        // Get user instance
-                       $userInstance = GenericRegistry::getRegistry()->getInstance('user');
+                       $userInstance = ObjectRegistry::getRegistry('generic')->getInstance('user');
 
                        // Get a crypto helper and hash the password
                        $this->hashedPassword = ObjectFactory::createObjectByConfiguredName('crypto_class')->hashString($plainPassword, $userInstance->getPasswordHash());
 
                        // Get a crypto helper and hash the password
                        $this->hashedPassword = ObjectFactory::createObjectByConfiguredName('crypto_class')->hashString($plainPassword, $userInstance->getPasswordHash());
index 8ab2a45e1ac97c65878c01794690eab13d8bf26b..8ce82bd12c17bd6349bc00bd628eaee915d0a4e7 100644 (file)
@@ -8,7 +8,7 @@ use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Factory\User\UserFactory;
 use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
 use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Factory\User\UserFactory;
 use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
@@ -83,7 +83,7 @@ class CityUserLogin extends BaseFrameworkSystem implements LoginableUser, Regist
                $userInstance = UserFactory::createUserByRequest($requestInstance);
 
                // Remember this new instance in registry
                $userInstance = UserFactory::createUserByRequest($requestInstance);
 
                // Remember this new instance in registry
-               GenericRegistry::getRegistry()->addInstance('user', $userInstance);
+               ObjectRegistry::getRegistry('generic')->addInstance('user', $userInstance);
 
                // Is the password correct?
                if ($userInstance->ifPasswordHashMatches($requestInstance) === FALSE) {
 
                // Is the password correct?
                if ($userInstance->ifPasswordHashMatches($requestInstance) === FALSE) {
@@ -124,7 +124,7 @@ class CityUserLogin extends BaseFrameworkSystem implements LoginableUser, Regist
         */
        public function ifLoginWasSuccessfull () {
                // Is the registry key there?
         */
        public function ifLoginWasSuccessfull () {
                // Is the registry key there?
-               $loginDone = (GenericRegistry::getRegistry()->getInstance('login') instanceof Registerable);
+               $loginDone = (ObjectRegistry::getRegistry('generic')->getInstance('login') instanceof Registerable);
 
                // Return the result
                return $loginDone;
 
                // Return the result
                return $loginDone;
@@ -147,7 +147,7 @@ class CityUserLogin extends BaseFrameworkSystem implements LoginableUser, Regist
                        $plainPassword = FrameworkBootstrap::getRequestInstance()->getRequestElement($requestKey);
 
                        // Get user instance
                        $plainPassword = FrameworkBootstrap::getRequestInstance()->getRequestElement($requestKey);
 
                        // Get user instance
-                       $userInstance = GenericRegistry::getRegistry()->getInstance('user');
+                       $userInstance = ObjectRegistry::getRegistry('generic')->getInstance('user');
 
                        // Get a crypto helper and hash the password
                        $this->hashedPassword = ObjectFactory::createObjectByConfiguredName('crypto_class')->hashString($plainPassword, $userInstance->getPasswordHash());
 
                        // Get a crypto helper and hash the password
                        $this->hashedPassword = ObjectFactory::createObjectByConfiguredName('crypto_class')->hashString($plainPassword, $userInstance->getPasswordHash());
index 45dad3da9904c230d7a42d6ede7e6bb6cd27b9d0..9a32925aedad36d97c8594629111f28927dcef93 100644 (file)
@@ -9,7 +9,7 @@ use Org\Mxchange\CoreFramework\Factory\Object\ObjectFactory;
 use Org\Mxchange\CoreFramework\Generic\NullPointerException;
 use Org\Mxchange\CoreFramework\Helper\Login\BaseLoginHelper;
 use Org\Mxchange\CoreFramework\Helper\Login\HelpableLogin;
 use Org\Mxchange\CoreFramework\Generic\NullPointerException;
 use Org\Mxchange\CoreFramework\Helper\Login\BaseLoginHelper;
 use Org\Mxchange\CoreFramework\Helper\Login\HelpableLogin;
-use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Registry\Object\ObjectRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -74,7 +74,7 @@ class CityLoginHelper extends BaseLoginHelper implements HelpableLogin {
                $helperInstance = new CityLoginHelper();
 
                // Get a user instance from registry
                $helperInstance = new CityLoginHelper();
 
                // Get a user instance from registry
-               $userInstance = GenericRegistry::getRegistry()->getInstance('user');
+               $userInstance = ObjectRegistry::getRegistry('generic')->getInstance('user');
 
                // Is this instance valid?
                if (!$userInstance instanceof ManageableAccount) {
 
                // Is this instance valid?
                if (!$userInstance instanceof ManageableAccount) {
@@ -116,6 +116,6 @@ class CityLoginHelper extends BaseLoginHelper implements HelpableLogin {
                $loginInstance->setPasswordAuth(FrameworkBootstrap::getRequestInstance()->getRequestElement('pass_hash'));
 
                // Remember this login instance for later usage
                $loginInstance->setPasswordAuth(FrameworkBootstrap::getRequestInstance()->getRequestElement('pass_hash'));
 
                // Remember this login instance for later usage
-               GenericRegistry::getRegistry()->addInstance('login', $loginInstance);
+               ObjectRegistry::getRegistry('generic')->addInstance('login', $loginInstance);
        }
 }
        }
 }
diff --git a/core b/core
index ba76f1380ebef3021b78d122cbabd6fe3173cd47..6e12381ce34de3edb56d18830949362491ddb61a 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit ba76f1380ebef3021b78d122cbabd6fe3173cd47
+Subproject commit 6e12381ce34de3edb56d18830949362491ddb61a