]> git.mxchange.org Git - hub.git/blobdiff - inc/classes/middleware/io/class_FileIoHandler.php
Code merge from latest Ship-Simu code
[hub.git] / inc / classes / middleware / io / class_FileIoHandler.php
index c41f7cb2d891e30926fe14098aa297464f59db1a..8e1b4b3bd3037a0d3ceb7abc2c6f74920e5ab1d4 100644 (file)
@@ -3,7 +3,7 @@
  * This is a file IO handler. It handles reading from and writing to files.
  * Missing paths in writing process will be automatically created.
  *
- * @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
@@ -53,10 +53,6 @@ class FileIoHandler extends BaseMiddleware {
                // Create an unique ID
                $this->createUniqueID();
 
-               // Clean up a little
-               $this->removeNumberFormaters();
-               $this->removeSystemArray();
-
                // Set own instance
                self::$thisInstance = $this;
        }
@@ -72,8 +68,8 @@ class FileIoHandler extends BaseMiddleware {
                $ioHandler = new FileIoHandler();
 
                // Set the *real* file IO instances (both the same)
-               $ioHandler->setInputStream(FileIoStream::createFileIoStream());
-               $ioHandler->setOutputStream(FileIoStream::createFileIoStream());
+               $ioHandler->setInputStream(ObjectFactory::createObjectByConfiguredName('file_input_stream'));
+               $ioHandler->setOutputStream(ObjectFactory::createObjectByConfiguredName('file_output_stream'));
 
                // Return instance
                return $ioHandler;