]> git.mxchange.org Git - city.git/blobdiff - application/city/classes/commands/html/class_CityHtmlConfirmCommand.php
Continued:
[city.git] / application / city / classes / commands / html / class_CityHtmlConfirmCommand.php
index fc48015f12475039f5637e0c5fb247d80595f248..81a6cabd0f80f7b262ec166f155f4cb8839afcf7 100644 (file)
@@ -1,4 +1,16 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Command;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Command\BaseCommand;
+use Org\Mxchange\CoreFramework\Command\Commandable;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+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;
+
 /**
  * A command for the confirmation link handling
  *
@@ -58,7 +70,7 @@ class CityHtmlConfirmCommand extends BaseCommand implements Commandable {
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Get the application instance
-               $applicationInstance = $this->getResolverInstance()->getApplicationInstance();
+               $applicationInstance = GenericRegistry::getRegistry()->getInstance('application');
 
                // Prepare a template instance
                $templateInstance = $this->prepareTemplateInstance($applicationInstance);
@@ -100,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');
@@ -141,6 +153,3 @@ class CityHtmlConfirmCommand extends BaseCommand implements Commandable {
                // Empty for now
        }
 }
-
-// [EOF]
-?>