]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/index/class_
Added required interface, a special factories uses the Registry Pattern.
[core.git] / inc / classes / main / index / class_
index 2f51d77cc63d4ea1b07ff80eb27837b23d4b5f53..6e09c7b6b44e3612ed99130431df1678a8f1620e 100644 (file)
@@ -21,7 +21,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
-class ???Index extends BaseIndex implements Indexable {
+class ???Index extends BaseIndex implements Indexable, Registerable {
        /**
         * Protected constructor
         *
@@ -42,6 +42,9 @@ class ???Index extends BaseIndex implements Indexable {
                // Get a new instance
                $indexInstance = new ???Index();
 
+               // Initialize index
+               $indexInstance->initIndex($fileName);
+
                // Return the prepared instance
                return $indexInstance;
        }