]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/commands/class_BaseCommand.php
Rewrite continued:
[core.git] / framework / main / classes / commands / class_BaseCommand.php
index 3feb617ec903652ad7ce6f752e2b4f59eafd989b..020f8fa07bdc49e410722baa524a9473d3f48966 100644 (file)
@@ -5,6 +5,7 @@ namespace CoreFramework\Command;
 // Import framework stuff
 use CoreFramework\Factory\ObjectFactory;
 use CoreFramework\Object\BaseFrameworkSystem;
+use CoreFramework\Registry\Registry;
 use CoreFramework\Request\Requestable;
 use CoreFramework\Response\Responseable;
 
@@ -55,7 +56,7 @@ class BaseCommand extends BaseFrameworkSystem {
                assert(!$requestInstance->isPostRequestMethod());
 
                // Get the application instance
-               $applicationInstance = $this->getResolverInstance()->getApplicationInstance();
+               $applicationInstance = Registry::getRegistry()->getInstance('app');
 
                // Prepare a template instance
                $templateInstance = $this->prepareTemplateInstance($applicationInstance);