A lot rewrites and fixes for weak redirect methods
[shipsimu.git] / application / ship-simu / main / actions / web / class_WebShipSimuLoginProfileAction.php
index 532e47e103d2bc675c5513f20d5a7334f305904b..774b7255ea7ec3ddd7fd029ba728aeb026f13f9d 100644 (file)
@@ -21,7 +21,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
-class WebShipSimuLoginProfileAction extends BaseAction implements Commandable, Registerable {
+class WebShipSimuLoginProfileAction extends BaseShipSimuAction implements Commandable, Registerable {
        /**
         * Protected constructor
         *
@@ -58,7 +58,10 @@ class WebShipSimuLoginProfileAction extends BaseAction implements Commandable, R
         * @todo        0% done
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
-               // Unfinished method
+               // Call parent execute method
+               parent::execute($requestInstance, $responseInstance);
+
+               // Add your code here...
        }
 
        /**
@@ -71,7 +74,7 @@ class WebShipSimuLoginProfileAction extends BaseAction implements Commandable, R
         */
        public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
                // Check for user status by default
-               $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('user_status_filter'));
+               $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('user_status_filter', array($controllerInstance)));
        }
 }