- * @param $stackName Name of the stack's file
- * @return $indexInstance An instance of a IndexableStack class
+ * @param $infoInstance An instance of a SplFileInfo class
+ * @return $indexInstance An instance of a IndexableStack class
// If there is no handler?
if (Registry::getRegistry()->instanceExists($type . '_index')) {
// Get handler from registry
$indexInstance = Registry::getRegistry()->getInstance($type . '_index');
} else {
// Get the handler instance
// If there is no handler?
if (Registry::getRegistry()->instanceExists($type . '_index')) {
// Get handler from registry
$indexInstance = Registry::getRegistry()->getInstance($type . '_index');
} else {
// Get the handler instance