));
}
+ // Init template engine
+ self::getResponseInstance()->initTemplateEngine($applicationInstance);
+
// Now call all methods in one go
foreach (array('setupApplicationData', 'initApplication', 'launchApplication') as $methodName) {
// Debug message
* @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
} 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(
namespace Org\Mxchange\CoreFramework\Response;
// Import framework stuff
+use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
use Org\Mxchange\CoreFramework\Response\Responseable;
/**
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;
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;
// Import framework stuff
use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
+use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
/**
* An interface for responses
*/
function refreshCookie ($cookieName);
+ /**
+ * Initializes the template engine instance
+ *
+ * @param $applicationInstance An instance of a manageable application
+ * @return void
+ */
+ function initTemplateEngine (ManageableApplication $applicationInstance);
+
}