]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/io/io_handler/class_FileIoStream.php
Fixed calling ObjectFactory::createObjectByConfiguredName() as 2nd parameter must...
[core.git] / inc / classes / main / io / io_handler / class_FileIoStream.php
index d8cd58031fa7c1a9b2d57d46db0d4334c9a24ed9..35bc0c8b36de4d4156b774bfb69d4126aebe1227 100644 (file)
@@ -79,7 +79,7 @@ class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, Fil
                for ($idx = 0; $idx < 5; $idx++) {
                        // Get a file output pointer
                        try {
-                               $fileInstance = ObjectFactory::createObjectByConfiguredName('file_raw_output_class', $fileName);
+                               $fileInstance = ObjectFactory::createObjectByConfiguredName('file_raw_output_class', array($fileName));
                        } catch (FileIoException $e) {
                                // Create missing directory
                                $dirName = dirname($fileName);
@@ -147,7 +147,7 @@ class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, Fil
                $readData = ''; // This will contain our read data
 
                // Get a file input handler
-               $fileInstance = ObjectFactory::createObjectByConfiguredName('file_raw_input_class', $fqfn);
+               $fileInstance = ObjectFactory::createObjectByConfiguredName('file_raw_input_class', array($fqfn));
 
                // Read all it's contents (we very and transparently decompress it below)
                while ($readRawLine = $fileInstance->readFromFile()) {