Method redirectToConfiguredUrl() does now append the suffix '_url' to all config...
authorRoland Häder <roland@mxchange.org>
Sun, 21 Dec 2008 04:24:48 +0000 (04:24 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 21 Dec 2008 04:24:48 +0000 (04:24 +0000)
application/ship-simu/main/commands/web/class_WebShipsimuGuestLoginCommand.php
application/ship-simu/main/commands/web/class_WebShipsimuRefillCommand.php
application/ship-simu/main/commands/web/class_WebShipsimuUserLoginCommand.php
application/ship-simu/main/controller/web/class_WebGovernmentFailedController.php
application/ship-simu/main/filter/government/class_ShipSimuGovernmentPaysStartupHelpFilter.php
application/ship-simu/main/filter/government/class_ShipSimuGovernmentPaysTrainingFilter.php

index 80e4a5d..6d5f7f8 100644 (file)
@@ -78,7 +78,7 @@ class WebShipsimuGuestLoginCommand extends BaseCommand implements Commandable {
                        // Try to redirect here
                        try {
                                // Redirect...
-                               $responseInstance->redirectToConfiguredUrl('app_login_url');
+                               $responseInstance->redirectToConfiguredUrl('app_login');
 
                                // Exit here
                                exit();
index fa7aff5..300a6e8 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));
        }
 }
 
index e554d9a..37cc02c 100644 (file)
@@ -78,7 +78,7 @@ class WebShipsimuUserLoginCommand extends BaseCommand implements Commandable {
                        // Try to redirect here
                        try {
                                // Redirect...
-                               $responseInstance->redirectToConfiguredUrl('app_login_url');
+                               $responseInstance->redirectToConfiguredUrl('app_login');
 
                                // Exit here
                                exit();
index 806fb40..078e2c8 100644 (file)
@@ -82,7 +82,7 @@ class WebGovernmentFailedController extends BaseController implements Controller
                        $this->executePreFilters($requestInstance, $responseInstance);
                } catch (UserAuthorizationException $e) {
                        // Redirect to main page
-                       $responseInstance->redirectToConfiguredUrl('login_failed_url');
+                       $responseInstance->redirectToConfiguredUrl('login_failed');
 
                        // Exit here
                        exit();
index 6daa67f..9fb21e7 100644 (file)
@@ -66,7 +66,7 @@ class ShipSimuGovernmentPaysStartupHelpFilter extends BaseShipSimuFilter impleme
                        $requestInstance->requestIsValid(false);
 
                        // Redirect to configured URL
-                       $responseInstance->redirectToConfiguredUrl('login_government_startup_failed_url');
+                       $responseInstance->redirectToConfiguredUrl('login_government_startup_failed');
 
                        // Stop processing here
                        exit();
index 50a2b1f..9d548c8 100644 (file)
@@ -66,7 +66,7 @@ class ShipSimuGovernmentPaysTrainingFilter extends BaseShipSimuFilter implements
                        $requestInstance->requestIsValid(false);
 
                        // Redirect to configured URL
-                       $responseInstance->redirectToConfiguredUrl('login_government_training_failed_url');
+                       $responseInstance->redirectToConfiguredUrl('login_government_training_failed');
 
                        // Stop processing here
                        exit();