X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fcontroller%2Fhtml%2Fclass_HtmlProblemController.php;fp=inc%2Fclasses%2Fmain%2Fcontroller%2Fhtml%2Fclass_HtmlProblemController.php;h=f3c37356c1692ce8e8b03a22bf7cf538bf4d21e4;hp=3a1551c61f98d80713c71cd5fae5b843b82ebac3;hb=f68c0d147585336bb415878accdff5c2af6882f8;hpb=33df9198674ca343b89dee4f0b8ec0808171cd85 diff --git a/inc/classes/main/controller/html/class_HtmlProblemController.php b/inc/classes/main/controller/html/class_HtmlProblemController.php index 3a1551c6..f3c37356 100644 --- a/inc/classes/main/controller/html/class_HtmlProblemController.php +++ b/inc/classes/main/controller/html/class_HtmlProblemController.php @@ -58,26 +58,8 @@ class HtmlProblemController extends BaseController implements Controller { * @return void */ public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) { - // Get the command instance from the resolver by sending a request instance to the resolver - $commandInstance = $this->getResolverInstance()->resolveCommandByRequest($requestInstance); - - // Add more filters by the command - $commandInstance->addExtraFilters($this, $requestInstance); - - // Run the pre filters - $this->executePreFilters($requestInstance, $responseInstance); - - // This request was valid! :-D - $requestInstance->requestIsValid(); - - // Execute the command - $commandInstance->execute($requestInstance, $responseInstance); - - // Run the post filters - $this->executePostFilters($requestInstance, $responseInstance); - - // Flush the response out - $responseInstance->flushBuffer(); + // Generic pre-post command execution + $this->executeGenericPrePostCommand($requestInstance, $responseInstance); } }