]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/middleware/debug/class_DebugMiddleware.php
Account status page partly implemented, backtrace now without own saveBacktrace(...
[shipsimu.git] / inc / classes / middleware / debug / class_DebugMiddleware.php
index 1f5e6e0e64ca44ab7e00a486b7820f136f88320e..ed1f8d03d636f4500e957c4d42a3a8328ac22c22 100644 (file)
@@ -117,7 +117,7 @@ class DebugMiddleware extends BaseMiddleware implements Registerable {
                } elseif (!is_object($this->outputInstance)) {
                        // The debug output instance is not an object
                        throw new NoObjectException($this->ouputInstance, self::EXCEPTION_IS_NO_OBJECT);
-               } elseif (!method_exists($this->outputInstance, 'outputStream')) {
+               } elseif (!$this->outputInstance instanceof Debugger) {
                        // The required method outputStream() is missing
                        throw new MissingMethodException(array($this->outputInstance, 'outputStream'), self::EXCEPTION_MISSING_METHOD);
                }
@@ -126,7 +126,7 @@ class DebugMiddleware extends BaseMiddleware implements Registerable {
                if (empty($outStream)) {
                        // Initialization phase
                        return;
-               }
+               } // END - if
 
                // Use the output instance
                $this->outputInstance->outputStream($outStream);