]> git.mxchange.org Git - city.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sat, 3 Mar 2018 23:40:40 +0000 (00:40 +0100)
committerRoland Häder <roland@mxchange.org>
Sat, 3 Mar 2018 23:40:40 +0000 (00:40 +0100)
- 'app' is only parameter, 'application' is the application instance in registry
- changed Registry to GenericRegistry
- setting/getting request instance is now fully covered by FrameworkBootstrap
- updated core to latest commit

Signed-off-by: Roland Häder <roland@mxchange.org>
24 files changed:
application/city/class_ApplicationHelper.php
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_CityHtmlCityGuestLoginCommand.php
application/city/classes/commands/html/class_CityHtmlCityMapCommand.php
application/city/classes/commands/html/class_CityHtmlCityRegisterCommand.php
application/city/classes/commands/html/class_CityHtmlCityUserLoginCommand.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_CityHtmlLogoutCommand.php
application/city/classes/commands/html/class_CityHtmlResendLinkCommand.php
application/city/classes/database/frontend/city/class_CityInformationDatabaseWrapper.php
application/city/classes/database/frontend/region/class_RegionInformationDatabaseWrapper.php
application/city/classes/database/frontend/region_map/class_RegionMapDatabaseWrapper.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 688f5995bf8ee6aa9dff00cbb4466ba66b65aa80..9ced8a1907719485ae326bd48a50e8d3d00c1451 100644 (file)
@@ -9,7 +9,6 @@ use Org\Mxchange\CoreFramework\Loader\ClassLoader;
 use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
 use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
-use Org\Mxchange\CoreFramework\Registry\Registry;
 use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
 
 /**
index 3543c393d2cf3b7bca3c313ffc7f4ec227e17569..667eaac1801dac0db015196fb568525b85604d5e 100644 (file)
@@ -15,7 +15,7 @@ use Org\Mxchange\CoreFramework\Criteria\Storing\StoreableCriteria;
 use Org\Mxchange\CoreFramework\Database\Updateable;
 use Org\Mxchange\CoreFramework\Factory\Database\Wrapper\DatabaseWrapperFactory;
 use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Registry\GenericRegistry;;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -76,7 +76,7 @@ abstract class BaseCityDaemon extends BaseCitySystem implements Updateable, Adda
                $this->setCryptoInstance($cryptoInstance);
 
                // Add own instance to registry
-               Registry::getRegistry()->addInstance('city', $this);
+               GenericRegistry::getRegistry()->addInstance('city', $this);
 
                // Init state which sets the state to 'init'
                $this->initState();
@@ -179,7 +179,7 @@ abstract class BaseCityDaemon extends BaseCitySystem implements Updateable, Adda
         */
        public function activateCityDaemon (Requestable $requestInstance, Responseable $responseInstance) {
                // Get the controller here
-               $controllerInstance = Registry::getRegistry()->getInstance('controller');
+               $controllerInstance = GenericRegistry::getRegistry()->getInstance('controller');
 
                // Run all filters for the City activation
                $controllerInstance->executeActivationFilters($requestInstance, $responseInstance);
index a21b9d5fd0d3787f62c2b4b25ee4f106691bdf58..a4747648715399b5615cb739ccabc81e7e6a9f6a 100644 (file)
@@ -9,8 +9,8 @@ use Org\Mxchange\City\Helper\CityHelper;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
 use Org\Mxchange\CoreFramework\Handler\Task\HandleableTask;
+use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
-use Org\Mxchange\CoreFramework\Registry\Registry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 
 /**
@@ -49,16 +49,12 @@ class SimulationDefaultCityDaemon extends BaseCityDaemon implements CityHelper,
        /**
         * Creates an instance of this hub-node class
         *
-        * @param       $requestInstance        An instance of a Requestable class
         * @return      $nodeInstance           An instance of this hub-node class
         */
-       public static final function createSimulationDefaultCityDaemon (Requestable $requestInstance) {
+       public static final function createSimulationDefaultCityDaemon () {
                // Get a new instance
                $nodeInstance = new SimulationDefaultCityDaemon();
 
-               // Set the request instance
-               $nodeInstance->setRequestInstance($requestInstance);
-
                // Return the instance
                return $nodeInstance;
        }
@@ -81,7 +77,7 @@ class SimulationDefaultCityDaemon extends BaseCityDaemon implements CityHelper,
         */
        public function addExtraCityFilters () {
                // Get the application instance from registry
-               $applicationInstance = Registry::getRegistry()->getInstance('app');
+               $applicationInstance = GenericRegistry::getRegistry()->getInstance('application');
 
                // Get the controller from the application
                $controllerInstance = $applicationInstance->getControllerInstance();
index f2e006bac623bd1ba232d0c10beda6b959c519ab..62d16d6bba5178dbed8ac305b1fa82c2a46b8416 100644 (file)
@@ -10,7 +10,7 @@ use Org\Mxchange\CoreFramework\Command\BaseCommand;
 use Org\Mxchange\CoreFramework\Command\Commandable;
 use Org\Mxchange\CoreFramework\Controller\Controller;
 use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\Registry;
+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;
@@ -75,7 +75,7 @@ class CityConsoleDaemonCommand extends BaseCommand implements Commandable {
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get a registry and the application instance from it
-               $applicationInstance = Registry::getRegistry()->getInstance('app');
+               $applicationInstance = GenericRegistry::getRegistry()->getInstance('application');
 
                /*
                 * ----------------------- Bootstrapping phase ------------------------
@@ -101,7 +101,7 @@ class CityConsoleDaemonCommand extends BaseCommand implements Commandable {
                $cityInstance->activateCityDaemon($requestInstance, $responseInstance);
 
                // Get task handler instance
-               $handlerInstance = Registry::getRegistry()->getInstance('task_handler');
+               $handlerInstance = GenericRegistry::getRegistry()->getInstance('task_handler');
 
                // Debug message
                self::createDebugInstance(__CLASS__)->debugOutput('MAIN: --- Entering main loop. ---');
index bb444a4180c395146889cde6fbeff9285d717540..5f47cfdbbaf09e0f086e4a4ef03beb822bf41734 100644 (file)
@@ -72,9 +72,6 @@ class CityHtmlCityGuestLoginCommand extends BaseCommand implements Commandable {
                // First get a GuestLogin instance
                $loginInstance = ObjectFactory::createObjectByConfiguredName('guest_login_class');
 
-               // First set request and response instance
-               $loginInstance->setRequestInstance($requestInstance);
-
                // Encrypt the password
                $loginInstance->encryptPassword('passwd');
 
index eccba6307fd2dbc8f1d6dc9a69916d18b8fba30d..3e5c34bf13e0394a2abb35af2b216aba4feb32c1 100644 (file)
@@ -79,10 +79,6 @@ class CityHtmlCityMapCommand extends BaseCommand implements Commandable {
                // Make sure the instance is valid
                assert($managerInstance instanceof ManageableCity);
 
-               // First set request and response instance
-               $managerInstance->setRequestInstance($requestInstance);
-               $managerInstance->setResponseInstance($responseInstance);
-
                // Is there already a city the user has founded?
                if ($managerInstance->isCityAlreadyFounded()) {
                        // Found 2nd,3rd,... city
index 9b609b74d17bc21b00c1c2712fd44af63aef1f66..b643c0e38530e32c36a59044cd9b4e150d8c6ef3 100644 (file)
@@ -72,10 +72,6 @@ class CityHtmlCityRegisterCommand extends BaseCommand implements Commandable {
                // First get a UserRegistration instance
                $registerInstance = ObjectFactory::createObjectByConfiguredName('user_registration_class');
 
-               // First set request and response instance
-               $registerInstance->setRequestInstance($requestInstance);
-               $registerInstance->setResponseInstance($responseInstance);
-
                // Encrypt the password
                $registerInstance->encryptPassword('pass1');
 
index fbc91e2c0ed34b8dc776f31a2124699c4da1d76d..0a35eb59edef2c188a14aa68342efce8edf31e8e 100644 (file)
@@ -72,9 +72,6 @@ class CityHtmlCityUserLoginCommand extends BaseCommand implements Commandable {
                // First get a UserLogin instance
                $loginInstance = ObjectFactory::createObjectByConfiguredName('user_login_class');
 
-               // First set request and response instance
-               $loginInstance->setRequestInstance($requestInstance);
-
                // Encrypt the password
                $loginInstance->encryptPassword('pass');
 
index 1dc4b437a575f41a740b8264931cfe5506b06a03..9c46a1474a3e07bce2ecd5d15b38e14713ae75c9 100644 (file)
@@ -6,7 +6,7 @@ namespace Org\Mxchange\City\Command;
 use Org\Mxchange\CoreFramework\Command\BaseCommand;
 use Org\Mxchange\CoreFramework\Command\Commandable;
 use Org\Mxchange\CoreFramework\Controller\Controller;
-use Org\Mxchange\CoreFramework\Registry\Registry;
+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;
@@ -112,7 +112,7 @@ class CityHtmlConfirmCommand extends BaseCommand implements Commandable {
 
                // Get user instance
                try {
-                       $userInstance = Registry::getRegistry()->getInstance('user');
+                       $userInstance = GenericRegistry::getRegistry()->getInstance('user');
                } catch (NullPointerException $e) {
                        // Not found user, e.g. when the user is somehow invalid
                        $responseInstance->redirectToConfiguredUrl('html_cmd_user_is_null');
index 024f86ddd81b9fe10d8ff9213c7ca64e330efa44..0cb727ba053087f41f398ceda82fdb2e0b34254c 100644 (file)
@@ -4,7 +4,7 @@ namespace Org\Mxchange\City\Command;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Controller\Controller;
-use Org\Mxchange\CoreFramework\Registry\Registry;
+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;
@@ -85,7 +85,7 @@ class CityHtmlLoginAreaCommand extends BaseCommand implements Commandable {
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get the action instance from registry
-               $actionInstance = Registry::getRegistry()->getInstance('action');
+               $actionInstance = GenericRegistry::getRegistry()->getInstance('action');
 
                // Do we have an action here?
                if ($actionInstance instanceof PerformableAction) {
@@ -175,7 +175,7 @@ class CityHtmlLoginAreaCommand extends BaseCommand implements Commandable {
                $actionInstance = NULL;
 
                // Get registry
-               $registryInstance = Registry::getRegistry();
+               $registryInstance = GenericRegistry::getRegistry();
 
                // Get our application instance from the registry
                $applicationInstance = $registryInstance->getInstance('application');
@@ -205,6 +205,6 @@ class CityHtmlLoginAreaCommand extends BaseCommand implements Commandable {
                $actionInstance->addExtraFilters($controllerInstance, $requestInstance);
 
                // Remember this action in registry
-               Registry::getRegistry()->addInstance('action', $actionInstance);
+               GenericRegistry::getRegistry()->addInstance('action', $actionInstance);
        }
 }
index a34721715e7512c8838be8481715f1085640f84c..46cd32a71b99c066f0b21af795817cfdbf8e6537 100644 (file)
@@ -70,7 +70,7 @@ class CityHtmlLoginCommand extends BaseCommand implements Commandable, Registera
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Set request instance as extra instance
-               Registry::getRegistry()->addInstance('extra', $this);
+               GenericRegistry::getRegistry()->addInstance('extra', $this);
 
                // Get the application instance
                $applicationInstance = $this->getResolverInstance()->getApplicationInstance();
index 8cac273f92c91d403061e7f3100957b2b805f8f2..d632497812a004a33c6d68a448d466f32bb49db2 100644 (file)
@@ -71,9 +71,6 @@ class CityHtmlLogoutCommand extends BaseCommand implements Commandable {
                // Get an auth instance for checking and updating the auth cookies
                $authInstance = ObjectFactory::createObjectByConfiguredName('auth_method_class', array($responseInstance));
 
-               // Set request instance
-               $authInstance->setRequestInstance($requestInstance);
-
                // Destroy the auth data
                $authInstance->destroyAuthData();
 
index 75d6adf03a944f1cd104b883d0dabf9fc001c61b..b67be6783f50c02fda4877b559321bc7c6d65491 100644 (file)
@@ -7,7 +7,7 @@ use Org\Mxchange\CoreFramework\Command\BaseCommand;
 use Org\Mxchange\CoreFramework\Command\Commandable;
 use Org\Mxchange\CoreFramework\Controller\Controller;
 use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\Registry;
+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;
@@ -71,7 +71,7 @@ class CityHtmlResendLinkCommand extends BaseCommand implements Commandable {
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get user instance from registry
-               $userInstance = Registry::getRegistry()->getInstance('user');
+               $userInstance = GenericRegistry::getRegistry()->getInstance('user');
 
                // Get an application instance
                $applicationInstance = $this->getResolverInstance()->getApplicationInstance();
index 071b150d36334830f9e51d179b57fb009ba55deb..7963d178a196db3ee61decc5ad0d658f42281bc2 100644 (file)
@@ -11,8 +11,8 @@ use Org\Mxchange\City\Manager\City\ManageableCity;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Database\Frontend\BaseDatabaseWrapper;
 use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
-use Org\Mxchange\CoreFramework\Registry\Registry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 
 /**
@@ -146,7 +146,7 @@ class CityInformationDatabaseWrapper extends BaseDatabaseWrapper implements City
         */
        public function ifUserHasFoundedCity () {
                // Get user instance
-               $userInstance = Registry::getRegistry()->getInstance('user');
+               $userInstance = GenericRegistry::getRegistry()->getInstance('user');
 
                // Now get a search criteria instance
                $searchInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class');
@@ -224,7 +224,7 @@ class CityInformationDatabaseWrapper extends BaseDatabaseWrapper implements City
                assert(!$this->ifCityExists($cityName));
 
                // Get user instance
-               $userInstance = Registry::getRegistry()->getInstance('user');
+               $userInstance = GenericRegistry::getRegistry()->getInstance('user');
 
                // Get a dataset instance
                $dataSetInstance = ObjectFactory::createObjectByConfiguredName('dataset_criteria_class', array(self::DB_TABLE_CITY_INFORMATION));
index 720f818607d02bec216abf0ddfb125c97c1c4da4..3938f9357c8cc707b9388ce7a8785fe98c6ac902 100644 (file)
@@ -8,8 +8,8 @@ use Org\Mxchange\City\Factory\Manager\ManagerFactory;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Database\Frontend\BaseDatabaseWrapper;
 use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
-use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A database wrapper for region informations
@@ -90,7 +90,7 @@ class RegionInformationDatabaseWrapper extends BaseDatabaseWrapper implements Re
         */
        public function ifUserHasCreatedRegion () {
                // Get user instance
-               $userInstance = Registry::getRegistry()->getInstance('user');
+               $userInstance = GenericRegistry::getRegistry()->getInstance('user');
 
                // Now get a search criteria instance
                $searchInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class');
@@ -162,7 +162,7 @@ class RegionInformationDatabaseWrapper extends BaseDatabaseWrapper implements Re
                assert(!$this->ifRegionExists($regionName));
 
                // Get user instance
-               $userInstance = Registry::getRegistry()->getInstance('user');
+               $userInstance = GenericRegistry::getRegistry()->getInstance('user');
 
                // Get a dataset instance
                $dataSetInstance = ObjectFactory::createObjectByConfiguredName('dataset_criteria_class', array(self::DB_TABLE_REGION_INFORMATION));
index 2c15ad571a86421ce269daf5d439cdcc8a262339..9c2a2c29fd5d7cadc4d1b483fe48349014a4428b 100644 (file)
@@ -5,8 +5,8 @@ namespace Org\Mxchange\City\Database\Frontend\Region;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Database\Frontend\BaseDatabaseWrapper;
 use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
-use Org\Mxchange\CoreFramework\Registry\Registry;
 
 /**
  * A database wrapper for region maps
@@ -89,7 +89,7 @@ class RegionMapDatabaseWrapper extends BaseDatabaseWrapper implements RegionMapW
                assert(!$this->ifRegionExists($regionName));
 
                // Get user instance
-               $userInstance = Registry::getRegistry()->getInstance('user');
+               $userInstance = GenericRegistry::getRegistry()->getInstance('user');
 
                // Get a dataset instance
                $dataSetInstance = ObjectFactory::createObjectByConfiguredName('dataset_criteria_class', array(self::DB_TABLE_REGION_MAP));
index 6165d107862df7516af4190f5463e040e59d4cc0..c4ada485fa2865668c8908d01574aa8734849929 100644 (file)
@@ -4,7 +4,7 @@ namespace Org\Mxchange\City\Daemon\Factory;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -54,9 +54,9 @@ class CityDaemonFactory extends ObjectFactory {
                $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');
@@ -77,7 +77,7 @@ class CityDaemonFactory extends ObjectFactory {
                        $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);
index 7c2b5bebf0bae8f0b691a817b31f6e4dd2d138bc..6dac023f33c77a7246f18160e071dfceb103bf55 100644 (file)
@@ -4,7 +4,7 @@ namespace Org\Mxchange\City\Factory\Manager;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
 
 /**
  * A factory class for managers
@@ -53,15 +53,15 @@ class ManagerFactory extends ObjectFactory {
                $key = $type . '_manager';
 
                // If there is no handler?
-               if (Registry::getRegistry()->instanceExists($key)) {
+               if (GenericRegistry::getRegistry()->instanceExists($key)) {
                        // Get handler from registry
-                       $managerInstance = Registry::getRegistry()->getInstance($key);
+                       $managerInstance = GenericRegistry::getRegistry()->getInstance($key);
                } else {
                        // Get the proper manager instance
                        $managerInstance = ObjectFactory::createObjectByConfiguredName($key . '_class');
 
                        // Add it to the registry
-                       Registry::getRegistry()->addInstance($key, $managerInstance);
+                       GenericRegistry::getRegistry()->addInstance($key, $managerInstance);
                }
 
                // Return the instance
index 0edc4bcae66967884c9f16f629da089363352121..dd7e376ec9f76cee2e205f4255f4b0b03bb2d8cb 100644 (file)
@@ -7,7 +7,7 @@ use Org\Mxchange\City\Filter\BaseCityFilter;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
 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
-               $handlerInstance = Registry::getRegistry()->getInstance('task_handler');
+               $handlerInstance = GenericRegistry::getRegistry()->getInstance('task_handler');
 
                // Shutdown the task manager and all its registered tasks
                $handlerInstance->doShutdown();
index c318db8c4a050bc4ccd786769aeea5b5a9f5646d..642e8ac4370821c26f7b38ae459b472e94a16e76 100644 (file)
@@ -9,7 +9,7 @@ use Org\Mxchange\City\Filter\BaseCityFilter;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
 use Org\Mxchange\CoreFramework\Filter\Filterable;
-use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
 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
-               Registry::getRegistry()->addInstance('task_handler', $handlerInstance);
+               GenericRegistry::getRegistry()->addInstance('task_handler', $handlerInstance);
 
                // Prepare a city map expansion task
                $taskInstance = ObjectFactory::createObjectByConfiguredName('city_daemon_map_expander_task_class');
index fe6f90b8c674b6e919e44db1e68892b723eb8310..14fd42822cc0142d25a2624e4eee39d56386534a 100644 (file)
@@ -5,8 +5,8 @@ namespace Org\Mxchange\City\Login\Guest;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
 use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
+use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
-use Org\Mxchange\CoreFramework\Registry\Registry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -77,7 +77,7 @@ class CityGuestLogin extends BaseFrameworkSystem implements LoginableUser, Regis
                $userInstance = UserFactory::createUserByRequest($requestInstance);
 
                // Remember this new instance in registry
-               Registry::getRegistry()->addInstance('user', $userInstance);
+               GenericRegistry::getRegistry()->addInstance('user', $userInstance);
 
                // Is the password correct?
                if ($userInstance->ifPasswordHashMatches($requestInstance) === FALSE) {
@@ -113,7 +113,7 @@ class CityGuestLogin extends BaseFrameworkSystem implements LoginableUser, Regis
         */
        public function ifLoginWasSuccessfull () {
                // Is the registry key there?
-               $loginDone = (Registry::getRegistry()->getInstance('login') instanceof Registerable);
+               $loginDone = (GenericRegistry::getRegistry()->getInstance('login') instanceof Registerable);
 
                // Return the result
                return $loginDone;
@@ -136,7 +136,7 @@ class CityGuestLogin extends BaseFrameworkSystem implements LoginableUser, Regis
                        $plainPassword = FrameworkBootstrap::getRequestInstance()->getRequestElement($requestKey);
 
                        // Get user instance
-                       $userInstance = Registry::getRegistry()->getInstance('user');
+                       $userInstance = GenericRegistry::getRegistry()->getInstance('user');
 
                        // Get a crypto helper and hash the password
                        $this->hashedPassword = ObjectFactory::createObjectByConfiguredName('crypto_class')->hashString($plainPassword, $userInstance->getPasswordHash());
index 7a68588f2ba0635ae5c0f3fd8dc7e3db9e93b14a..ac9f9b1e588e8f46d695159ad4aad68b69f79028 100644 (file)
@@ -6,8 +6,8 @@ namespace Org\Mxchange\City\Login\User;
 use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
 use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
+use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
 use Org\Mxchange\CoreFramework\Registry\Registerable;
-use Org\Mxchange\CoreFramework\Registry\Registry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
@@ -81,7 +81,7 @@ class CityUserLogin extends BaseFrameworkSystem implements LoginableUser, Regist
                $userInstance = UserFactory::createUserByRequest($requestInstance);
 
                // Remember this new instance in registry
-               Registry::getRegistry()->addInstance('user', $userInstance);
+               GenericRegistry::getRegistry()->addInstance('user', $userInstance);
 
                // Is the password correct?
                if ($userInstance->ifPasswordHashMatches($requestInstance) === FALSE) {
@@ -122,7 +122,7 @@ class CityUserLogin extends BaseFrameworkSystem implements LoginableUser, Regist
         */
        public function ifLoginWasSuccessfull () {
                // Is the registry key there?
-               $loginDone = (Registry::getRegistry()->getInstance('login') instanceof Registerable);
+               $loginDone = (GenericRegistry::getRegistry()->getInstance('login') instanceof Registerable);
 
                // Return the result
                return $loginDone;
@@ -145,7 +145,7 @@ class CityUserLogin extends BaseFrameworkSystem implements LoginableUser, Regist
                        $plainPassword = FrameworkBootstrap::getRequestInstance()->getRequestElement($requestKey);
 
                        // Get user instance
-                       $userInstance = Registry::getRegistry()->getInstance('user');
+                       $userInstance = GenericRegistry::getRegistry()->getInstance('user');
 
                        // Get a crypto helper and hash the password
                        $this->hashedPassword = ObjectFactory::createObjectByConfiguredName('crypto_class')->hashString($plainPassword, $userInstance->getPasswordHash());
index 632280a3ea382992e9ce9b1a4b26f27c4196cc08..b33105ba7dbbeb8788f8747a5a214efe414af762 100644 (file)
@@ -5,7 +5,7 @@ namespace Org\Mxchange\City\Helper\Login;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
-use Org\Mxchange\CoreFramework\Registry\Registry;
+use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 
 /**
@@ -70,7 +70,7 @@ class CityLoginHelper extends BaseLoginHelper implements HelpableLogin {
                $helperInstance = new CityLoginHelper();
 
                // Get a user instance from registry
-               $userInstance = Registry::getRegistry()->getInstance('user');
+               $userInstance = GenericRegistry::getRegistry()->getInstance('user');
 
                // Is this instance valid?
                if (!$userInstance instanceof ManageableAccount) {
@@ -81,9 +81,6 @@ class CityLoginHelper extends BaseLoginHelper implements HelpableLogin {
                // Set default login method from config
                $helperInstance->setDefaultAuthMethod();
 
-               // Set request instance
-               $helperInstance->setRequestInstance($requestInstance);
-
                // Return the prepared instance
                return $helperInstance;
        }
@@ -115,6 +112,6 @@ class CityLoginHelper extends BaseLoginHelper implements HelpableLogin {
                $loginInstance->setPasswordAuth(FrameworkBootstrap::getRequestInstance()->getRequestElement('pass_hash'));
 
                // Remember this login instance for later usage
-               Registry::getRegistry()->addInstance('login', $loginInstance);
+               GenericRegistry::getRegistry()->addInstance('login', $loginInstance);
        }
 }
diff --git a/core b/core
index bb121094b0c87c1ed028dfb5f86565b782742e6d..5135152658d9678af5871e0cd9ad86c259ad1e5c 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit bb121094b0c87c1ed028dfb5f86565b782742e6d
+Subproject commit 5135152658d9678af5871e0cd9ad86c259ad1e5c