]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/factories/index/class_FileStackIndexFactory.php
Added new interfaces Handleable/-DataSet and ProtocolHandler (no content yet).
[core.git] / inc / classes / main / factories / index / class_FileStackIndexFactory.php
index 43394fd6819fc8d30dd027409dc3e0435cba7c36..a0d6fb2baa10479fdc0cdfa2dfbceb58a4d5b5a4 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Hub Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2014 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -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);