]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/template/connect/class_XmlSelfConnectTemplateEngine.php
Removed obsolete parameter 'applicationInstance' from all template engines
[hub.git] / application / hub / main / template / connect / class_XmlSelfConnectTemplateEngine.php
index df6cdd09b479b6a54887764be90ec3a47907e2fb..ccb4a84c534fc44214f857469e06baebb40a7342 100644 (file)
@@ -62,7 +62,6 @@ class XmlSelfConnectTemplateEngine extends BaseTemplateEngine implements Compile
        /**
         * Creates an instance of the class TemplateEngine and prepares it for usage
         *
-        * @param       $applicationInstance    A manageable application
         * @return      $templateInstance               An instance of TemplateEngine
         * @throws      BasePathIsEmptyException                If the provided $templateBasePath is empty
         * @throws      InvalidBasePathStringException  If $templateBasePath is no string
@@ -71,10 +70,13 @@ class XmlSelfConnectTemplateEngine extends BaseTemplateEngine implements Compile
         * @throws      BasePathReadProtectedException  If $templateBasePath is
         *                                                                                      read-protected
         */
-       public static final function createXmlSelfConnectTemplateEngine (ManageableApplication $applicationInstance) {
+       public static final function createXmlSelfConnectTemplateEngine () {
                // Get a new instance
                $templateInstance = new XmlSelfConnectTemplateEngine();
 
+               // Get the application instance from registry
+               $applicationInstance = Registry::getRegistry()->getInstance('app');
+
                // Determine base path
                $templateBasePath = $templateInstance->getConfigInstance()->getConfigEntry('application_base_path') . $applicationInstance->getRequestInstance()->getRequestElement('app') . '/';
 
@@ -263,7 +265,7 @@ class XmlSelfConnectTemplateEngine extends BaseTemplateEngine implements Compile
                // Is the template dependency set?
                if ((!empty($templateDependency)) && (!isset($this->dependencyContent[$node]))) {
                        // Get a temporay template instance
-                       $templateInstance = ObjectFactory::createObjectByConfiguredName('node_self_connect_template_class', array($this->getApplicationInstance()));
+                       $templateInstance = ObjectFactory::createObjectByConfiguredName('node_self_connect_template_class');
 
                        // Then load it
                        $templateInstance->loadSelfConnectTemplate($templateDependency);