X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Fcommands%2Fclass_BaseCommand.php;h=8417f019398162d076837f3c5f440f8306448979;hp=3feb617ec903652ad7ce6f752e2b4f59eafd989b;hb=b002c5909aa0f781505dde5414964b0f014cde01;hpb=78a010fef84895720e796842208f01dfb619c332 diff --git a/framework/main/classes/commands/class_BaseCommand.php b/framework/main/classes/commands/class_BaseCommand.php index 3feb617e..8417f019 100644 --- a/framework/main/classes/commands/class_BaseCommand.php +++ b/framework/main/classes/commands/class_BaseCommand.php @@ -1,12 +1,13 @@ . */ -class BaseCommand extends BaseFrameworkSystem { +abstract class BaseCommand extends BaseFrameworkSystem { /** * Protected constructor * @@ -55,7 +56,7 @@ class BaseCommand extends BaseFrameworkSystem { assert(!$requestInstance->isPostRequestMethod()); // Get the application instance - $applicationInstance = $this->getResolverInstance()->getApplicationInstance(); + $applicationInstance = GenericRegistry::getRegistry()->getInstance('app'); // Prepare a template instance $templateInstance = $this->prepareTemplateInstance($applicationInstance);