]> git.mxchange.org Git - core.git/blobdiff - inc/classes/middleware/debug/class_DebugMiddleware.php
More widen interface ProtocolHandler (which should be extended by listener and writer...
[core.git] / inc / classes / middleware / debug / class_DebugMiddleware.php
index 8d25477eca28c459171c86131b3fe43e2e92ee95..f9f2523cdf74e8c710bfa4715f3a88b10189f082 100644 (file)
@@ -6,7 +6,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007 - 2009 Roland Haeder, this is free software
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -45,6 +45,9 @@ class DebugMiddleware extends BaseMiddleware implements Registerable {
 
                // Set own instance
                self::$thisInstance = $this;
+
+               // Set it so all can use it
+               $this->setDebugInstance($this);
        }
 
        /**
@@ -100,13 +103,13 @@ class DebugMiddleware extends BaseMiddleware implements Registerable {
         * browser or debug lines for a log file, etc. to the registered debug
         * output instance.
         *
-        * @param       $outStream      Data we shall "stream" out to the world
+        * @param       $outStream      Data we shall 'stream' out to the world
         * @return      void
         */
        public final function output ($outStream) {
                // Is the output stream set
                if (empty($outStream)) {
-                       // Initialization phase
+                       // @TODO Initialization phase
                        return;
                } // END - if