]> git.mxchange.org Git - city.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 30 Oct 2020 00:00:11 +0000 (01:00 +0100)
committerRoland Häder <roland@mxchange.org>
Fri, 30 Oct 2020 00:00:11 +0000 (01:00 +0100)
- added missing imports
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
application/city/classes/city_daemon/class_BaseCityDaemon.php
application/city/classes/commands/html/class_CityHtmlConfirmCommand.php
application/city/classes/commands/html/class_CityHtmlResendLinkCommand.php
application/city/classes/login/class_CityGuestLogin.php
application/city/classes/login/class_CityUserLogin.php
application/city/classes/login/helper/class_CityLoginHelper.php
application/city/classes/registration/class_CityRegistration.php
core

index c19270f3c2ae5fd5b9ffbcadc5924274462c1476..d4c5382b093cbc1c66b3b12938945057f6bb2449 100644 (file)
@@ -12,6 +12,7 @@ use Org\Mxchange\City\Database\Frontend\Information\CityInformationDatabaseWrapp
 use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 use Org\Mxchange\CoreFramework\Criteria\Add\AddableCriteria;
 use Org\Mxchange\CoreFramework\Criteria\Storing\StoreableCriteria;
+use Org\Mxchange\CoreFramework\Database\Frontend\User\UserDatabaseWrapper;
 use Org\Mxchange\CoreFramework\Database\Updateable;
 use Org\Mxchange\CoreFramework\Factory\Database\Wrapper\DatabaseWrapperFactory;
 use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
index 4fb3b7136d2fbdb5144329ddaa754c8ae6d9c3bd..e6ae502ad13d5f79259dd99663f23f84d61ac938 100644 (file)
@@ -6,7 +6,9 @@ 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\Database\Frontend\User\UserDatabaseWrapper;
 use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Generic\NullPointerException;
 use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver;
index 77a2ba61653b7b2631dc75fae903eba41ae558d1..172ecc6d6ec31fe2d0e8fd59a713b1caef0dc425 100644 (file)
@@ -6,6 +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\Database\Frontend\User\UserDatabaseWrapper;
 use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
 use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
index 14fd42822cc0142d25a2624e4eee39d56386534a..4fc2b9db758a46126f010f364e651748d8887982 100644 (file)
@@ -3,7 +3,10 @@
 namespace Org\Mxchange\City\Login\Guest;
 
 // Import framework stuff
+use Org\Mxchange\CoreFramework\Auth\LoginableUser;
+use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 use Org\Mxchange\CoreFramework\Factory\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\Registerable;
index ac9f9b1e588e8f46d695159ad4aad68b69f79028..8297bb9709dcef19aa8a9b244816f804a59f4494 100644 (file)
@@ -3,8 +3,10 @@
 namespace Org\Mxchange\City\Login\User;
 
 // Import framework stuff
+use Org\Mxchange\CoreFramework\Auth\LoginableUser;
 use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 use Org\Mxchange\CoreFramework\Factory\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\Registerable;
index b33105ba7dbbeb8788f8747a5a214efe414af762..1a2db89322d3f3992ad686e11e8a2c6cf4321664 100644 (file)
@@ -3,10 +3,15 @@
 namespace Org\Mxchange\City\Helper\Login;
 
 // Import framework stuff
+use Org\Mxchange\CoreFramework\User\ManageableAccount;
 use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 use Org\Mxchange\CoreFramework\Factory\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\Registry\GenericRegistry;
 use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A helper for City to login. This login helper first checks what setting
@@ -62,8 +67,7 @@ class CityLoginHelper extends BaseLoginHelper implements HelpableLogin {
         *
         * @param       $requestInstance        An instance of a Requestable class
         * @return      $helperInstance         An instance of this helper class
-        * @throws      UserInstanceMissingException    If the user instance in registry
-        *                                                                                      is missing or invalid
+        * @throws      NullPointerException    If the user instance in registry is missing or invalid
         */
        public static final function createCityLoginHelper (Requestable $requestInstance) {
                // Get a new instance first
@@ -75,7 +79,7 @@ class CityLoginHelper extends BaseLoginHelper implements HelpableLogin {
                // Is this instance valid?
                if (!$userInstance instanceof ManageableAccount) {
                        // Thrown an exception here
-                       throw new UserInstanceMissingException (array($helperInstance, 'user'), self::EXCEPTION_INVALID_USER_INSTANCE);
+                       throw new NullPointerException($this, self::EXCEPTION_IS_NULL_POINTER);
                } // END - if
 
                // Set default login method from config
index b9fc81518048c3f78c8cbbee7a47f64217b0d13b..3b4ca6d788faa84d5058f99bc2719548e6d55233 100644 (file)
@@ -5,8 +5,11 @@ namespace Org\Mxchange\City\Registration;
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Bootstrap\FrameworkBootstrap;
 use Org\Mxchange\CoreFramework\Criteria\Storing\StoreableCriteria;
+use Org\Mxchange\CoreFramework\Database\Frontend\User\UserDatabaseWrapper;
 use Org\Mxchange\CoreFramework\Factory\Database\Wrapper\DatabaseWrapperFactory;
 use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Registration\BaseRegistration;
+use Org\Mxchange\CoreFramework\Registration\User\UserRegister;
 use Org\Mxchange\CoreFramework\Request\Requestable;
 
 /**
@@ -159,7 +162,7 @@ class CityRegistration extends BaseRegistration implements UserRegister {
                $actionInstance = ObjectFactory::createObjectByConfiguredName('post_registration_class');
 
                // Execute the action
-               $actionInstance->execute(FrameworkBootstrap::getRequestInstance(), $this->getResponseInstance());
+               $actionInstance->execute(FrameworkBootstrap::getRequestInstance(), FrameworkBootstrap::getResponseInstance());
        }
 
        /**
diff --git a/core b/core
index f2ab4d6de08ce3a56636bf76ba5ef0ebf3a187c7..645d7022e1e74573bd7511fb98ae3ac4e341464e 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit f2ab4d6de08ce3a56636bf76ba5ef0ebf3a187c7
+Subproject commit 645d7022e1e74573bd7511fb98ae3ac4e341464e