X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Ffactories%2Fxml%2Fclass_XmlTemplateEngineFactory.php;h=86cc114e700392ed0392eebb2beca1522b3fbdbf;hp=73d455eaac52052e739767cd46d223e4ae68b6d3;hb=8d8cf621bd811811cecd83c65a4ab91f27258e79;hpb=146c8b3c929a1b0ab17d6605e5ae949ac44899c1 diff --git a/framework/main/classes/factories/xml/class_XmlTemplateEngineFactory.php b/framework/main/classes/factories/xml/class_XmlTemplateEngineFactory.php index 73d455ea..86cc114e 100644 --- a/framework/main/classes/factories/xml/class_XmlTemplateEngineFactory.php +++ b/framework/main/classes/factories/xml/class_XmlTemplateEngineFactory.php @@ -1,10 +1,10 @@ instanceExists($configEntry)) { + if (GenericRegistry::getRegistry()->instanceExists($configEntry)) { // Then use this instance - $templateInstance = Registry::getRegistry()->getInstance($configEntry); + $templateInstance = GenericRegistry::getRegistry()->getInstance($configEntry); } else { // Now prepare the tags instance $templateInstance = ObjectFactory::createObjectByConfiguredName($configEntry); @@ -68,7 +68,7 @@ class XmlTemplateEngineFactory extends ObjectFactory { $templateInstance->enableXmlCompacting(); // Set the instance in registry for further use - Registry::getRegistry()->addInstance($configEntry, $templateInstance); + GenericRegistry::getRegistry()->addInstance($configEntry, $templateInstance); } // Return the instance