Method redirectToConfiguredUrl() does now append the suffix '_url' to all config...
[shipsimu.git] / application / ship-simu / main / commands / web / class_WebShipsimuRefillCommand.php
index fa7aff5322642ec7f0e8db382426c9709d896b04..300a6e801d816bcb570fd0f1ef1facf29f0b1cb6 100644 (file)
@@ -59,10 +59,10 @@ class WebShipsimuRefillCommand extends BaseCommand implements Commandable {
         * @param       $requestInstance        An instance of a class with an Requestable interface
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
-        * @todo        We should add something like payment discovery here (where to withdraw, e.g. external API)
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
-               // Unfinished method
+               // This method does currently redirect if all goes right
+               $responseInstance->redirectToConfiguredUrl('refill_page_done');
        }
 
        /**
@@ -101,7 +101,7 @@ class WebShipsimuRefillCommand extends BaseCommand implements Commandable {
                );
 
                // Now, try to load that filter
-               $controllerInstance->addPostFilter(ObjectFactory::createObjectByConfiguredName($filterName));
+               $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName($filterName));
        }
 }