]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/template/connect/class_SelfConnectTemplateEngine.php
A lot new methods/class added and many cleanups:
[hub.git] / application / hub / main / template / connect / class_SelfConnectTemplateEngine.php
index ca60f142e28e3c6072171cb48d52d6f122b94017..5d33ef7fc74ae2e733d2f61b3f99581e0f9c75f9 100644 (file)
@@ -62,8 +62,8 @@ class SelfConnectTemplateEngine extends BaseTemplateEngine implements Compileabl
        /**
         * Creates an instance of the class TemplateEngine and prepares it for usage
         *
-        * @param       $appInstance    A manageable application
-        * @return      $templateInstance       An instance of TemplateEngine
+        * @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
         * @throws      BasePathIsNoDirectoryException  If $templateBasePath is no
@@ -71,16 +71,12 @@ class SelfConnectTemplateEngine extends BaseTemplateEngine implements Compileabl
         * @throws      BasePathReadProtectedException  If $templateBasePath is
         *                                                                                      read-protected
         */
-       public static final function createSelfConnectTemplateEngine (ManageableApplication $appInstance) {
+       public static final function createSelfConnectTemplateEngine (ManageableApplication $applicationInstance) {
                // Get a new instance
                $templateInstance = new SelfConnectTemplateEngine();
 
-               // Get language and file I/O instances from application
-               $langInstance = $appInstance->getLanguageInstance();
-               $ioInstance = $appInstance->getFileIoInstance();
-
                // Determine base path
-               $templateBasePath = $templateInstance->getConfigInstance()->getConfigEntry('application_base_path') . $appInstance->getRequestInstance()->getRequestElement('app') . '/';
+               $templateBasePath = $templateInstance->getConfigInstance()->getConfigEntry('application_base_path') . $applicationInstance->getRequestInstance()->getRequestElement('app') . '/';
 
                // Is the base path valid?
                if (empty($templateBasePath)) {
@@ -100,10 +96,6 @@ class SelfConnectTemplateEngine extends BaseTemplateEngine implements Compileabl
                // Set the base path
                $templateInstance->setTemplateBasePath($templateBasePath);
 
-               // Set the language and IO instances
-               $templateInstance->setLanguageInstance($langInstance);
-               $templateInstance->setFileIoInstance($ioInstance);
-
                // Set template extensions
                $templateInstance->setRawTemplateExtension($templateInstance->getConfigInstance()->getConfigEntry('raw_template_extension'));
                $templateInstance->setCodeTemplateExtension($templateInstance->getConfigInstance()->getConfigEntry('self_connect_template_extension'));