]> git.mxchange.org Git - core.git/blobdiff - inc/main/middleware/compressor/class_CompressorChannel.php
Continued:
[core.git] / inc / main / middleware / compressor / class_CompressorChannel.php
index f1189c5fb0e0b094a26825361385495861f12e7c..fe77ed389591f3677868ffbfe2ae21137f62fe1f 100644 (file)
@@ -1,10 +1,18 @@
 <?php
+// Own namespace
+namespace CoreFramework\Channel\Compressor;
+
+// Import framework stuff
+use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Middleware\BaseMiddleware;
+use CoreFramework\Registry\Registerable;
+
 /**
  * Middleware class for selecting the right compressor channel
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -62,7 +70,7 @@ class CompressorChannel extends BaseMiddleware implements Registerable {
                        // Read all directories but no sub directories, .htaccess files and NullCompressor class
                        while ($directoryEntry = $directoryInstance->readDirectoryExcept(array('.htaccess', 'class_NullCompressor.php'))) {
                                // Debug message
-                               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('COMPRESSOR[' . __METHOD__ . ':' . __LINE__ . ']: directoryEntry=' . $directoryEntry);
+                               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('COMPRESSOR[' . __METHOD__ . ':' . __LINE__ . ']: directoryEntry=' . $directoryEntry);
 
                                // Is this a class file?
                                if ((substr($directoryEntry, 0, 6) == 'class_') && (substr($directoryEntry, -4, 4) == '.php')) {
@@ -134,7 +142,5 @@ class CompressorChannel extends BaseMiddleware implements Registerable {
                // Get compressor extension from current compressor
                return $this->getCompressor()->getCompressorExtension();
        }
-}
 
-// [EOF]
-?>
+}