]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/index/class_BaseIndex.php
Moved even more code to BaseFile where a much better place is for it (clear encapsula...
[core.git] / inc / classes / main / index / class_BaseIndex.php
index 0ee7b77c251cdeb08c49dda69acdf71bee129de5..fd57724131a179bf518a159ad54e7d141684ef75 100644 (file)
@@ -150,10 +150,10 @@ class BaseIndex extends BaseFrameworkSystem {
                $fileName .= $this->getConfigInstance()->getConfigEntry('index_extension');
 
                // Get a file i/o pointer instance for index file
-               $fileInstance = ObjectFactory::createObjectByConfiguredName('index_file_class', array($fileName));
+               $fileInstance = ObjectFactory::createObjectByConfiguredName('index_file_class', array($fileName, $this));
 
                // Get iterator instance
-               $iteratorInstance = ObjectFactory::createObjectByConfiguredName('file_io_iterator_class', array($fileInstance, $this));
+               $iteratorInstance = ObjectFactory::createObjectByConfiguredName('file_io_iterator_class', array($fileInstance));
 
                // Is the instance implementing the right interface?
                assert($iteratorInstance instanceof SeekableWritableFileIterator);