]> git.mxchange.org Git - core.git/blobdiff - inc/main/classes/output/debug/console/class_DebugConsoleOutput.php
Debugging continued:
[core.git] / inc / main / classes / output / debug / console / class_DebugConsoleOutput.php
index 8ab0887b03b17de6e60370bbf79d5867e526c59e..8c0a749ae3839c723f818a7311b419f6aa5781a3 100644 (file)
@@ -3,7 +3,10 @@
 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)
@@ -100,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);
        }
 
@@ -123,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);
        }
 
@@ -136,7 +139,5 @@ class DebugConsoleOutput extends BaseDebugOutput implements Debugger, OutputStre
        public function size () {
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
-}
 
-// [EOF]
-?>
+}