getDefaultCommand() is now moved to BaseResponse.
[core.git] / inc / classes / main / response / console / class_ConsoleResponse.php
index 194c0b32d668ed97adbc84c91ad5fba365f294c3..ab492d3574a3b421ae818c78d0229732575522d0 100644 (file)
@@ -33,6 +33,9 @@ class ConsoleResponse extends BaseResponse implements Responseable {
        protected function __construct () {
                // Call parent constructor
                parent::__construct(__CLASS__);
+
+               // Set response type
+               $this->setResponseType('image');
        }
 
        /**
@@ -115,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
         *