Renamed Registry -> GenericRegistry to make it clear that this registry does
[core.git] / framework / main / classes / index / file_stack / class_FileStackIndex.php
index 72da66dc79007f4feb9dfbc152301d1361272352..7d3306090e8d3d5a7ea9a171633f7a78e11b8806 100644 (file)
@@ -9,6 +9,9 @@ use Org\Mxchange\CoreFramework\Registry\Registerable;
 use Org\Mxchange\CoreFramework\Stacker\Filesystem\BaseFileStacker;
 use Org\Mxchange\CoreFramework\Stacker\Index\IndexableStack;
 
+// Import SPL stuff
+use \SplFileInfo;
+
 /**
  * A FileStack index class
  *
@@ -45,15 +48,15 @@ class FileStackIndex extends BaseIndex implements IndexableStack, Registerable {
        /**
         * Creates an instance of this Index class and prepares it for usage
         *
-        * @param       $fileName               Name of the file stack to create an index file for
+        * @param       $fileInfoInstance       An instance of a SplFileInfo class
         * @return      $indexInstance  An instance of this Index class
         */
-       public final static function createFileStackIndex ($fileName) {
+       public final static function createFileStackIndex (SplFileInfo $fileInfoInstance) {
                // Get a new instance
                $indexInstance = new FileStackIndex();
 
                // Initialize index
-               $indexInstance->initIndex($fileName);
+               $indexInstance->initIndex($fileInfoInstance);
 
                // Return the prepared instance
                return $indexInstance;