]> git.mxchange.org Git - mailer.git/blobdiff - inc/classes/middleware/compressor/class_CompressorChannel.php
Code merge from latest Ship-Simu code
[mailer.git] / inc / classes / middleware / compressor / class_CompressorChannel.php
index 1b33041fd86b45946f8f2c8ca801f818e38fe4af..e48e091a3784c2d201cc389c83953514896dada6 100644 (file)
@@ -2,7 +2,7 @@
 /**
  * Middleware class for selecting the right compressor channel
  *
- * @author             Roland Haeder <webmaster@mxchange.org>
+ * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
  * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
@@ -98,8 +98,8 @@ class CompressorChannel extends BaseMiddleware {
                        || (!method_exists($cInstance->getCompressor(), 'compressStream'))
                        || (!method_exists($cInstance->getCompressor(), 'decompressStream'))
                ) {
-                       // Set the null compressor handler
-                       $cInstance->setCompressor(NullCompressor::createNullCompressor());
+                       // Set the null compressor handler. This should not be configureable!
+                       $cInstance->setCompressor(ObjectFactory::createObjectByName('NullCompressor'));
                }
 
                // Return the compressor instance