Fixed calling ObjectFactory::createObjectByConfiguredName() as 2nd parameter must...
[core.git] / inc / classes / main / console / class_ConsoleTools.php
index 32746b476178f973ecf1fdbe4fc60fdf2fcf8f50..068bbf5003b661588504c5f53518410434bcf76d 100644 (file)
@@ -207,7 +207,7 @@ class ConsoleTools extends BaseFrameworkSystem {
 
                try {
                        // Get a file pointer
-                       $fileInstance = ObjectFactory::createObjectByConfiguredName('file_raw_input_class', $helperInstance->getConfigInstance()->getConfigEntry('hostname_file'));
+                       $fileInstance = ObjectFactory::createObjectByConfiguredName('file_raw_input_class', array($helperInstance->getConfigInstance()->getConfigEntry('hostname_file')));
 
                        // Read the file
                        $rawData = trim($fileInstance->readFromFile());