]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/commands/image/class_ImageCodeCaptchaCommand.php
Continued:
[core.git] / framework / main / classes / commands / image / class_ImageCodeCaptchaCommand.php
index ea5f737d19f59497f8350edd39fd1a6f840dd653..53709e65cff2dd0498fa9a98ce980e3e605d5691 100644 (file)
@@ -6,6 +6,7 @@ namespace Org\Mxchange\CoreFramework\Command\Captcha;
 use Org\Mxchange\CoreFramework\Command\BaseCommand;
 use Org\Mxchange\CoreFramework\Command\Commandable;
 use Org\Mxchange\CoreFramework\Controller\Controller;
+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;
@@ -73,7 +74,7 @@ class ImageCodeCaptchaCommand extends BaseCommand implements Commandable {
                $decryptedCode = $requestInstance->getRequestElement('decrypted');
 
                // Get the application instance
-               $applicationInstance = GenericRegistry::getRegistry()->getInstance('application');
+               $applicationInstance = ApplicationHelper::getSelfInstance();
 
                // Assign variable
                $this->getTemplateInstance()->assignVariable('decrypted_code', $decryptedCode);