A lot rewrites and fixes for weak redirect methods
[shipsimu.git] / application / ship-simu / main / actions / web / class_WebShipSimuLoginLogoutAction.php
index 31464c82348c3f221dc90870350ab2106c65fe8f..3d6d5c3124ca6d222b0e7c712098e29ca98dbb73 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 WebShipSimuLoginLogoutAction extends BaseAction implements Commandable, Registerable {
+class WebShipSimuLoginLogoutAction extends BaseShipSimuAction implements Commandable, Registerable {
        /**
         * Protected constructor
         *
@@ -58,7 +58,10 @@ class WebShipSimuLoginLogoutAction extends BaseAction implements Commandable, Re
         * @todo        0% done
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
-               // Unfinished method
+               // Call parent execute method
+               parent::execute($requestInstance, $responseInstance);
+
+               // Add your code here
        }
 
        /**
@@ -70,7 +73,7 @@ class WebShipSimuLoginLogoutAction extends BaseAction implements Commandable, Re
         */
        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)));
        }
 }