]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/controller/html/class_HtmlConfirmController.php
Introduced executeGenericPrePostCommand() which will execute a command with
[core.git] / inc / classes / main / controller / html / class_HtmlConfirmController.php
index 8e3147e2c2b16af00b755672e090c05ca50b27ae..ea3e7633846582f0e577feda9692b0a79ac08517 100644 (file)
@@ -64,23 +64,8 @@ class HtmlConfirmController 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);
-
-               // 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);
        }
 }