Continued:
[core.git] / framework / main / classes / commands / class_BaseCommand.php
index 3feb617ec903652ad7ce6f752e2b4f59eafd989b..12ae3690202b6adf0741dfd8ecce9478275a718a 100644 (file)
@@ -1,12 +1,13 @@
 <?php
 // Own namespace
-namespace CoreFramework\Command;
+namespace Org\Mxchange\CoreFramework\Command;
 
 // Import framework stuff
-use CoreFramework\Factory\ObjectFactory;
-use CoreFramework\Object\BaseFrameworkSystem;
-use CoreFramework\Request\Requestable;
-use CoreFramework\Response\Responseable;
+use Org\Mxchange\CoreFramework\Factory\ObjectFactory;
+use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
+use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
  * A general (base) command
@@ -30,7 +31,7 @@ use CoreFramework\Response\Responseable;
  * You should have received a copy of the GNU General Public License
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
-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('application');
 
                // Prepare a template instance
                $templateInstance = $this->prepareTemplateInstance($applicationInstance);