Initialize the file-based stack with initStack() where e.g. the file i/o
[core.git] / inc / classes / main / file_stack / class_
index bdec190a86a350042e31f1122890351b85044913..274f923f99bf7d3feec37cca6a82c0805712e943 100644 (file)
@@ -42,11 +42,8 @@ class ???FileStack extends BaseFileStack implements Stackable {
                // Get new instance
                $stackInstance = new ???FileStack();
 
-               // Get the I/O file pointer instance and handle over file name
-               $pointerInstance = ObjectFactory::createObjectByConfiguredName('file_raw_input_output_class', $fileName);
-
-               // Set instance here in stack
-               $stackInstance->setPointerInstance($pointerInstance);
+               // Init this stack
+               $stackInstance->initStack($fileName);
 
                // Return the prepared instance
                return $stackInstance;