Payment introduced, minor rewrites
[shipsimu.git] / application / ship-simu / main / actions / web / class_WebLoginRefillAction.php
index 3120fac0c00aa89023e2ff8b4ae281c923396a0a..77f18f57abe3153f72528c867d63edd751f87b16 100644 (file)
@@ -55,7 +55,7 @@ class WebLoginRefillAction extends BaseAction implements Commandable, Registerab
         * @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        Maybe add fetching company list of current user here?
+        * @todo        0% done
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // Unfinished method
@@ -74,6 +74,9 @@ class WebLoginRefillAction extends BaseAction implements Commandable, Registerab
 
                // Is the refill page active?
                $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('refill_page_filter'));
+
+               // Add payment discovery filter
+               $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('payment_discovery_filter', array($this)));
        }
 }