* @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 = LocalControllerResolver::createLocalControllerResolver($defaultCommand, $this)->resolveDefaultController();
+ $controllerInstance = $resolverInstance->resolveDefaultController();
// Handle the request
$controllerInstance->handleRequest($requestInstance, $responseInstance);