]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/factories/index/class_FileStackIndexFactory.php
Satisfied interface, still these methods are unsupported.
[core.git] / inc / classes / main / factories / index / class_FileStackIndexFactory.php
index 43394fd6819fc8d30dd027409dc3e0435cba7c36..3ce37f01aac262acd835343232e3d7b8436990d9 100644 (file)
@@ -45,7 +45,10 @@ class FileStackIndexFactory extends ObjectFactory {
                        $indexInstance = Registry::getRegistry()->getInstance($type . '_index');
                } else {
                        // Get the handler instance
-                       $indexInstance = self::createObjectByConfiguredName($type . 'file_stack__index_class', array($fileName));
+                       $indexInstance = self::createObjectByConfiguredName($type . '_file_stack_index_class', array($fileName));
+
+                       // Add check for interface
+                       assert($indexInstance instanceof IndexableStack);
 
                        // Add it to the registry
                        Registry::getRegistry()->addInstance($type . '_index', $indexInstance);