Code merge from latest Ship-Simu code
[mailer.git] / inc / classes / middleware / compressor / class_CompressorChannel.php
index d1c80ca5e4bf70da3dd11be7ea61718159b21779..e48e091a3784c2d201cc389c83953514896dada6 100644 (file)
@@ -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