]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/commands/image/class_ImageCodeCaptchaCommand.php
Rewrite continued:
[core.git] / framework / main / classes / commands / image / class_ImageCodeCaptchaCommand.php
index a0e329df7a29311a2cd4ce7ab8b355b3b1e4f390..b61bcfddddfbb2d663393a2c95128a06ccfaafa6 100644 (file)
@@ -6,6 +6,7 @@ namespace CoreFramework\Command\Captcha;
 use CoreFramework\Command\BaseCommand;
 use CoreFramework\Command\Commandable;
 use CoreFramework\Controller\Controller;
+use CoreFramework\Registry\Registry;
 use CoreFramework\Request\Requestable;
 use CoreFramework\Resolver\Command\CommandResolver;
 use CoreFramework\Response\Responseable;
@@ -72,7 +73,7 @@ class ImageCodeCaptchaCommand extends BaseCommand implements Commandable {
                $decryptedCode = $requestInstance->getRequestElement('decrypted');
 
                // Get the application instance
-               $applicationInstance = $this->getResolverInstance()->getApplicationInstance();
+               $applicationInstance = Registry::getRegistry()->getInstance('app');
 
                // Prepare a template instance
                $templateInstance = $this->prepareTemplateInstance($applicationInstance);