X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fship-simu%2Fclass_ApplicationHelper.php;h=75373862f40ca89aeb65ecd34ed0ef64a1781c05;hb=7625f0ed496dbf1bb3efbb3bd327dbd0fd747af4;hp=2b31ffad2bb13044bb759421a2ccaaaf571a26ab;hpb=e66d9d3d9ab15a66fd136f41e046e33c785c3e2a;p=shipsimu.git diff --git a/application/ship-simu/class_ApplicationHelper.php b/application/ship-simu/class_ApplicationHelper.php index 2b31ffa..7537386 100644 --- a/application/ship-simu/class_ApplicationHelper.php +++ b/application/ship-simu/class_ApplicationHelper.php @@ -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);