]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/response/console/class_ConsoleResponse.php
Moved from shipsimu project.
[core.git] / inc / classes / main / response / console / class_ConsoleResponse.php
index 2e201fc243faa26e20cd88d5f27b03709dbde860..000ecfef9102ab1af52f14f1d3629d1da587468c 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2014 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -33,6 +33,9 @@ class ConsoleResponse extends BaseResponse implements Responseable {
        protected function __construct () {
                // Call parent constructor
                parent::__construct(__CLASS__);
+
+               // Set response type
+               $this->setResponseType('console');
        }
 
        /**
@@ -51,6 +54,9 @@ class ConsoleResponse extends BaseResponse implements Responseable {
                // Initialize the template engine here
                $responseInstance->initTemplateEngine($applicationInstance);
 
+               // Init web output instance
+               $responseInstance->initWebOutputInstance();
+
                // Return the prepared instance
                return $responseInstance;
        }
@@ -112,16 +118,6 @@ class ConsoleResponse extends BaseResponse implements Responseable {
                $this->partialStub('Naturally unimplemented in console response.');
        }
 
-       /**
-        * Getter for default command
-        *
-        * @return      $defaultCommand         Default command for this response
-        */
-       public function getDefaultCommand () {
-               $defaultCommand = $this->getConfigInstance()->getConfigEntry('default_console_command');
-               return $defaultCommand;
-       }
-
        /**
         * Flushs the cached console response to the console
         *