From 7feab128546f6802897a03dae592834a5b1632e6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 31 Jan 2013 18:40:01 +0000 Subject: [PATCH] Better this way --- inc/classes/main/console/class_ConsoleTools.php | 2 +- inc/classes/main/streams/class_ | 2 +- inc/classes/main/streams/input/class_ | 2 +- inc/classes/main/streams/output/class_ | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/classes/main/console/class_ConsoleTools.php b/inc/classes/main/console/class_ConsoleTools.php index 0dd5b93c..4987049a 100644 --- a/inc/classes/main/console/class_ConsoleTools.php +++ b/inc/classes/main/console/class_ConsoleTools.php @@ -161,7 +161,7 @@ class ConsoleTools extends BaseFrameworkSystem { try { // Get a file pointer - $io = FrameworkFileInputPointer::createFrameworkFileInputPointer($helperInstance->getConfigEntry('hostname_file')); + $io = FrameworkFileInputPointer::createFrameworkFileInputPointer($helperInstance->getConfigInstance()->getConfigEntry('hostname_file')); // Read the file $hostname = trim($io->readFromFile()); diff --git a/inc/classes/main/streams/class_ b/inc/classes/main/streams/class_ index fe179d01..5cc8474d 100644 --- a/inc/classes/main/streams/class_ +++ b/inc/classes/main/streams/class_ @@ -53,7 +53,7 @@ class ???Stream extends BaseStream implements Streamable { * @throws UnsupportedOperationException If this method is called */ public function streamData ($data) { - $this->debugOutput('Unhandled ' . strlen($data) . ' bytes in this stream.'); + self::createDebugInstance(__CLASS__)->debugOutput('Unhandled ' . strlen($data) . ' bytes in this stream.'); throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION); } } diff --git a/inc/classes/main/streams/input/class_ b/inc/classes/main/streams/input/class_ index 935f1f0e..108f48f2 100644 --- a/inc/classes/main/streams/input/class_ +++ b/inc/classes/main/streams/input/class_ @@ -53,7 +53,7 @@ class ???InputStream extends BaseStream implements InputStreamable { * @throws UnsupportedOperationException If this method is called */ public function streamData ($data) { - $this->debugOutput('Unhandled ' . strlen($data) . ' bytes in this stream.'); + self::createDebugInstance(__CLASS__)->debugOutput('Unhandled ' . strlen($data) . ' bytes in this stream.'); throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION); } } diff --git a/inc/classes/main/streams/output/class_ b/inc/classes/main/streams/output/class_ index e0020e7b..ce5dda25 100644 --- a/inc/classes/main/streams/output/class_ +++ b/inc/classes/main/streams/output/class_ @@ -53,7 +53,7 @@ class ???OutputStream extends BaseStream implements OutputStreamable { * @throws UnsupportedOperationException If this method is called */ public function streamData ($data) { - $this->debugOutput('Unhandled ' . strlen($data) . ' bytes in this stream.'); + self::createDebugInstance(__CLASS__)->debugOutput('Unhandled ' . strlen($data) . ' bytes in this stream.'); throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION); } } -- 2.39.5