]> git.mxchange.org Git - shipsimu.git/commitdiff
Method call on non-object fixed
authorRoland Häder <roland@mxchange.org>
Fri, 20 Jun 2008 18:09:05 +0000 (18:09 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 20 Jun 2008 18:09:05 +0000 (18:09 +0000)
inc/classes/main/controller/default/class_WebDefaultNewsController.php
inc/classes/main/controller/default/class_WebLoginController.php
inc/classes/main/controller/login/class_WebLoginAreaController.php

index f623f8407e997da0915036278b2af8e99160358b..e0f506aacca7b99a0af62da8ce0952f8a744660e 100644 (file)
@@ -67,15 +67,15 @@ class WebDefaultNewsController 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);
 
                // Run the pre filters
                $this->executePreFilters($requestInstance, $responseInstance);
 
-               // 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();
 
index 28378f393c13e9622cafb462176f27bdcdceede5..5bc762c89d419cc9e788e52f5866df68242f782e 100644 (file)
@@ -66,15 +66,15 @@ class WebLoginController 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);
 
                // Run the pre filters
                $this->executePreFilters($requestInstance, $responseInstance);
 
-               // 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();
 
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();