Debugging continued:
[core.git] / inc / main / classes / output / debug / console / class_DebugConsoleOutput.php
index d1de0cab09a16e5e2af834dbac0ba4d6e041c72d..8c0a749ae3839c723f818a7311b419f6aa5781a3 100644 (file)
@@ -1,10 +1,19 @@
 <?php
+// Own namespace
+namespace CoreFramework\Debug\Output;
+
+// Import framework stuff
+use CoreFramework\Debug\Debugger;
+use CoreFramework\Output\Debug\BaseDebugOutput;
+use CoreFramework\Registry\Registerable;
+use CoreFramework\Stream\Output\OutputStreamer;
+
 /**
  * A debug output class for the console (e.g. hub software)
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -94,7 +103,7 @@ class DebugConsoleOutput extends BaseDebugOutput implements Debugger, OutputStre
         * @throws      UnsupportedOperationException   If this method is called
         */
        public function streamData ($data) {
-               self::createDebugInstance(__CLASS__)->debugOutput('Unhandled ' . strlen($data) . ' bytes in this stream.');
+               self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('Unhandled ' . strlen($data) . ' bytes in this stream.');
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
@@ -117,7 +126,7 @@ class DebugConsoleOutput extends BaseDebugOutput implements Debugger, OutputStre
         * @throws      UnsupportedOperationException   If this method is called
         */
        public function seek ($offset, $whence = SEEK_SET) {
-               self::createDebugInstance(__CLASS__)->debugOutput('[' . __METHOD__ . ':' . __LINE__ . '] offset=' . $offset . ',whence=' . $whence);
+               self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('[' . __METHOD__ . ':' . __LINE__ . '] offset=' . $offset . ',whence=' . $whence);
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
@@ -130,7 +139,5 @@ class DebugConsoleOutput extends BaseDebugOutput implements Debugger, OutputStre
        public function size () {
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
-}
 
-// [EOF]
-?>
+}