]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/class_ApplicationHelper.php
Just a space removed
[shipsimu.git] / application / ship-simu / class_ApplicationHelper.php
index 407b58804b7c42ad7e5cb4818ae1549ac49dee50..ef2de33ecda7290a372b2d818506f42b2282ff5f 100644 (file)
@@ -24,7 +24,7 @@
  * @version            0.0.0
  * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
- * @link               http://www.ship-simu.org
+ * @link               http://www.ship-simu.org
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -82,7 +82,7 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica
                $this->setObjectDescription("Application-Helper");
 
                // Create an unique ID
-               $this->createUniqueID();
+               $this->generateUniqueId();
 
                // Tidy up a little
                $this->removeSystemArray();
@@ -182,7 +182,7 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica
         */
        public final function entryPoint () {
                // Create a new request object
-               $requestInstance = HttpRequest::createHttpRequest();
+               $requestInstance = ObjectFactory::createObjectByName('HttpRequest');
 
                // ... and a new response object
                $responseInstance = HttpResponse::createHttpResponse($this);
@@ -201,7 +201,7 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica
                // Get a resolver
                $resolverInstance = WebControllerResolver::createWebControllerResolver($commandName, $this);
 
-               // Get a new controller instance as well
+               // Get a controller instance as well
                $this->controllerInstance = $resolverInstance->resolveCommandController();
 
                // Handle the request
@@ -216,7 +216,10 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica
         * @return      void
         */
        public function handleFatalMessages (array $messageList) {
-               die("<pre>".print_r($messageList, true)."</pre>");
+               // Walk through all messages
+               foreach ($messageList as $message) {
+                       print("MSG:".$message."<br />\n");
+               }
        }
 }