Better this way
authorRoland Häder <roland@mxchange.org>
Thu, 31 Jan 2013 18:40:01 +0000 (18:40 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 31 Jan 2013 18:40:01 +0000 (18:40 +0000)
inc/classes/main/console/class_ConsoleTools.php
inc/classes/main/streams/class_
inc/classes/main/streams/input/class_
inc/classes/main/streams/output/class_

index 0dd5b93c5778533a085b3ac47a1e7926dda67b1f..4987049a5c5071119998804442c914e7d59203f0 100644 (file)
@@ -161,7 +161,7 @@ class ConsoleTools extends BaseFrameworkSystem {
 
                try {
                        // Get a file pointer
 
                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());
 
                        // Read the file
                        $hostname = trim($io->readFromFile());
index fe179d01c490dd9688048e344e92dc4286f645fb..5cc8474dc773e75b36491f77995248d56745e73e 100644 (file)
@@ -53,7 +53,7 @@ class ???Stream extends BaseStream implements Streamable {
         * @throws      UnsupportedOperationException   If this method is called
         */
        public function streamData ($data) {
         * @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);
        }
 }
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
 }
index 935f1f0e85e3d098bdd4f5317ba2eaf433e29a57..108f48f23b64142c6067e369aaf466799c7dc99d 100644 (file)
@@ -53,7 +53,7 @@ class ???InputStream extends BaseStream implements InputStreamable {
         * @throws      UnsupportedOperationException   If this method is called
         */
        public function streamData ($data) {
         * @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);
        }
 }
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
 }
index e0020e7bac6a7feadae9b5f7773cc24f26d75a97..ce5dda254096c5cd8e37891d25b72a10e1f3f45b 100644 (file)
@@ -53,7 +53,7 @@ class ???OutputStream extends BaseStream implements OutputStreamable {
         * @throws      UnsupportedOperationException   If this method is called
         */
        public function streamData ($data) {
         * @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);
        }
 }
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
 }