]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/class_ApplicationHelper.php
Registration stub added, naming convention applied, support for PHP code (keep it...
[shipsimu.git] / application / ship-simu / class_ApplicationHelper.php
index 2b31ffad2bb13044bb759421a2ccaaaf571a26ab..75373862f40ca89aeb65ecd34ed0ef64a1781c05 100644 (file)
@@ -177,17 +177,20 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica
         * @return      void
         */
        public final function entryPoint () {
-               // Get default command
-               $defaultCommand = $this->getConfigInstance()->readConfig("default_command");
-
                // Create a new request object
                $requestInstance = HttpRequest::createHttpRequest();
 
                // ... and a new response object
                $responseInstance = HttpResponse::createHttpResponse($this);
 
+               // Get default command
+               $defaultCommand = $this->getConfigInstance()->readConfig("default_command");
+
+               // Get a resolver
+               $resolverInstance = WebControllerResolver::createWebControllerResolver($defaultCommand, $this);
+
                // Get a new controller instance as well
-               $controllerInstance = WebControllerResolver::createWebControllerResolver($defaultCommand, $this)->resolveDefaultController();
+               $controllerInstance = $resolverInstance->resolveDefaultController();
 
                // Handle the request
                $controllerInstance->handleRequest($requestInstance, $responseInstance);