]> git.mxchange.org Git - core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Thu, 29 Oct 2020 23:45:45 +0000 (00:45 +0100)
committerRoland Häder <roland@mxchange.org>
Thu, 29 Oct 2020 23:47:46 +0000 (00:47 +0100)
- added missing Responable::initTemplateEngine() invocation

Signed-off-by: Roland Häder <roland@mxchange.org>
framework/bootstrap/class_FrameworkBootstrap.php
framework/main/classes/resolver/command/class_BaseCommandResolver.php
framework/main/classes/response/console/class_ConsoleResponse.php
framework/main/classes/response/html/class_HtmlResponse.php
framework/main/classes/response/image/class_ImageResponse.php
framework/main/interfaces/response/class_Responseable.php

index f7a4b5e2f69aa7a8b28293a5545810f587d7efbf..e5d27674116b33130d1acf7e510bbd7af8f6986d 100644 (file)
@@ -363,6 +363,9 @@ final class FrameworkBootstrap {
                        ));
                }
 
+               // Init template engine
+               self::getResponseInstance()->initTemplateEngine($applicationInstance);
+
                // Now call all methods in one go
                foreach (array('setupApplicationData', 'initApplication', 'launchApplication') as $methodName) {
                        // Debug message
index f064b30ffe8a4cfd0c5b549e2c49f6cf80b457e8..4dd1861efab2bc83f0d8c0ddb218beaac2b2dc45 100644 (file)
@@ -177,9 +177,6 @@ abstract class BaseCommandResolver extends BaseResolver {
         * @throws      InvalidArgumentException        Thrown if given command is not set
         */
        protected function isCommandValid ($namespace, $commandName) {
-               // By default nothing shall be valid
-               $isValid = false;
-
                // Is namespace and command name set?
                if (empty($namespace)) {
                        // Then thrown an exception here
@@ -187,7 +184,10 @@ abstract class BaseCommandResolver extends BaseResolver {
                } elseif (empty($commandName)) {
                        // Then thrown an exception here
                        throw new InvalidArgumentException('Parameter "commandName" is empty');
-               } // END - if
+               }
+
+               // By default nothing shall be valid
+               $isValid = false;
 
                // Create the full class name
                $className = sprintf(
index 020cf78f64421ff68c823e5c30540310ae0c53a1..6d5d6df485a4371758ba0e88eca68ff012fb0022 100644 (file)
@@ -3,6 +3,7 @@
 namespace Org\Mxchange\CoreFramework\Response;
 
 // Import framework stuff
+use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
 /**
index 9b4783e21455cd0c9b5e99c3155566f5846a2b5a..2e84655b4e64c5296fa84124035c4d4d049b7b91 100644 (file)
@@ -3,6 +3,7 @@
 namespace Org\Mxchange\CoreFramework\Response;
 
 // Import framework stuff
+use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
 use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
index ebcf9665d7769c19425fd4f1c5bfbf7c362c10ff..3d54e6a4c01041333f3d5c9a6d8eee64041f0393 100644 (file)
@@ -3,6 +3,7 @@
 namespace Org\Mxchange\CoreFramework\Response;
 
 // Import framework stuff
+use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
 use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
 use Org\Mxchange\CoreFramework\Response\Responseable;
 
index 0bebd0cdbb5d9bf57379ed8d473e5e08cc00e878..0713ab78936a5064e758ad025e3eaa642db6c1c8 100644 (file)
@@ -4,6 +4,7 @@ namespace Org\Mxchange\CoreFramework\Response;
 
 // Import framework stuff
 use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
+use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
 
 /**
  * An interface for responses
@@ -115,4 +116,12 @@ interface Responseable extends FrameworkInterface {
         */
        function refreshCookie ($cookieName);
 
+       /**
+        * Initializes the template engine instance
+        *
+        * @param       $applicationInstance    An instance of a manageable application
+        * @return      void
+        */
+       function initTemplateEngine (ManageableApplication $applicationInstance);
+
 }