]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/controller/login/class_WebLoginAreaController.php
Method call on non-object fixed
[shipsimu.git] / inc / classes / main / controller / login / class_WebLoginAreaController.php
index c43c897d2874e98d65b982d0bc9c5263c9d1a196..4bc6f29ec1ce17b4cbd7a019859b3b4a68c5f4c2 100644 (file)
@@ -77,6 +77,9 @@ class WebLoginAreaController extends BaseController implements Controller {
         * @return      void
         */
        public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
+               // Get the command instance from the resolver by sending a request instance to the resolver
+               $commandInstance = $this->getResolverInstance()->resolvCommandByRequest($requestInstance);
+
                // Add more filters by the command
                $commandInstance->addExtraFilters($this);
 
@@ -89,9 +92,6 @@ class WebLoginAreaController extends BaseController implements Controller {
                        $responseInstance->redirectToConfiguredUrl('login_failed_url');
                }
 
-               // Get the command instance from the resolver by sending a request instance to the resolver
-               $commandInstance = $this->getResolverInstance()->resolvCommandByRequest($requestInstance);
-
                // This request was valid! :-D
                $requestInstance->requestIsValid();