projects
/
core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
646c12d
)
Better this way
author
Roland Häder
<roland@mxchange.org>
Thu, 31 Jan 2013 18:40:01 +0000
(18:40 +0000)
committer
Roland Häder
<roland@mxchange.org>
Thu, 31 Jan 2013 18:40:01 +0000
(18:40 +0000)
inc/classes/main/console/class_ConsoleTools.php
patch
|
blob
|
history
inc/classes/main/streams/class_
patch
|
blob
|
history
inc/classes/main/streams/input/class_
patch
|
blob
|
history
inc/classes/main/streams/output/class_
patch
|
blob
|
history
diff --git
a/inc/classes/main/console/class_ConsoleTools.php
b/inc/classes/main/console/class_ConsoleTools.php
index 0dd5b93c5778533a085b3ac47a1e7926dda67b1f..4987049a5c5071119998804442c914e7d59203f0 100644
(file)
--- 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
try {
// Get a file pointer
- $io = FrameworkFileInputPointer::createFrameworkFileInputPointer($helperInstance->getConfigEntry('hostname_file'));
+ $io = FrameworkFileInputPointer::createFrameworkFileInputPointer($helperInstance->getConfig
Instance()->getConfig
Entry('hostname_file'));
// Read the file
$hostname = trim($io->readFromFile());
// Read the file
$hostname = trim($io->readFromFile());
diff --git
a/inc/classes/main/streams/class_
b/inc/classes/main/streams/class_
index fe179d01c490dd9688048e344e92dc4286f645fb..5cc8474dc773e75b36491f77995248d56745e73e 100644
(file)
--- 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) {
* @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);
}
}
diff --git
a/inc/classes/main/streams/input/class_
b/inc/classes/main/streams/input/class_
index 935f1f0e85e3d098bdd4f5317ba2eaf433e29a57..108f48f23b64142c6067e369aaf466799c7dc99d 100644
(file)
--- 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) {
* @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);
}
}
diff --git
a/inc/classes/main/streams/output/class_
b/inc/classes/main/streams/output/class_
index e0020e7bac6a7feadae9b5f7773cc24f26d75a97..ce5dda254096c5cd8e37891d25b72a10e1f3f45b 100644
(file)
--- 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) {
* @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);
}
}