]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/factories/index/class_FileStackIndexFactory.php
Continued:
[core.git] / framework / main / classes / factories / index / class_FileStackIndexFactory.php
index e37beb907fb3cb514f8053fd023fec089aabcf30..aa774a1d794ee46395c7af98998e0208d4e3d7e3 100644 (file)
@@ -57,15 +57,15 @@ class FileStackIndexFactory extends BaseFactory {
                if (empty($type)) {
                        // Throw IAE
                        throw new InvalidArgumentException('Parameter "type" is empty', FrameworkInterface::EXCEPTION_INVALID_ARGUMENT);
-               } elseif (ObjectRegistry::getRegistry('generic')->instanceExists($type . '_index')) {
+               } elseif (ObjectRegistry::getRegistry('factory')->instanceExists($type . '_index')) {
                        // Get handler from registry
-                       $indexInstance = ObjectRegistry::getRegistry('generic')->getInstance($type . '_index');
+                       $indexInstance = ObjectRegistry::getRegistry('factory')->getInstance($type . '_index');
                } else {
                        // Get the handler instance
                        $indexInstance = ObjectFactory::createObjectByConfiguredName($type . '_file_stack_index_class', [$fileInfoInstance]);
 
                        // Add it to the registry
-                       ObjectRegistry::getRegistry('generic')->addInstance($type . '_index', $indexInstance);
+                       ObjectRegistry::getRegistry('factory')->addInstance($type . '_index', $indexInstance);
                }
 
                // Return the instance