Moved outputInstance to BaseFrameworkSystem + added getter for it.
[core.git] / inc / classes / main / class_BaseFrameworkSystem.php
index 26986067f1f67a1200c242b1e65fed45cdc140a1..e26468c294579141f98d40990952f672e2c9e1c3 100644 (file)
@@ -218,6 +218,11 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
         */
        private $communicatorInstance = NULL;
 
+       /**
+        * The concrete output instance
+        */
+       private $outputInstance = NULL;
+
        /**
         * State instance
         */
@@ -1563,6 +1568,25 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                return $this->stateInstance;
        }
 
+       /**
+        * Setter for output instance
+        *
+        * @param       $outputInstance The debug output instance
+        * @return      void
+        */
+       public final function setOutputInstance (OutputStreamer $outputInstance) {
+               $this->outputInstance = $outputInstance;
+       }
+
+       /**
+        * Getter for output instance
+        *
+        * @return      $outputInstance The debug output instance
+        */
+       public final function getOutputInstance () {
+               return $this->outputInstance;
+       }
+
        /**
         * Setter for command name
         *