*/
private $communicatorInstance = NULL;
+ /**
+ * The concrete output instance
+ */
+ private $outputInstance = NULL;
+
/**
* State instance
*/
const EXCEPTION_FILE_NOT_REACHABLE = 0x038;
const EXCEPTION_FILE_CANNOT_BE_READ = 0x039;
const EXCEPTION_FILE_CANNOT_BE_WRITTEN = 0x03a;
- const EXCEPTION_DATABASE_UPDATED_NOT_ALLOWED = 0x03b;
- const EXCEPTION_FILTER_CHAIN_INTERCEPTED = 0x03c;
+ const EXCEPTION_PATH_CANNOT_BE_WRITTEN = 0x03b;
+ const EXCEPTION_DATABASE_UPDATED_NOT_ALLOWED = 0x03c;
+ const EXCEPTION_FILTER_CHAIN_INTERCEPTED = 0x03d;
/**
* Hexadecimal->Decimal translation array
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
*
// Try it
try {
// Get a debugger instance
- $debugInstance = DebugMiddleware::createDebugMiddleware(FrameworkConfiguration::getSelfInstance()->getConfigEntry('debug_' . self::getResponseTypeFromSystem() . '_class'));
+ $debugInstance = DebugMiddleware::createDebugMiddleware(FrameworkConfiguration::getSelfInstance()->getConfigEntry('debug_' . self::getResponseTypeFromSystem() . '_class'), $className);
} catch (NullPointerException $e) {
// Didn't work, no instance there
exit('Cannot create debugInstance! Exception=' . $e->__toString() . ', message=' . $e->getMessage());