]> git.mxchange.org Git - city.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 17 Feb 2023 08:13:44 +0000 (09:13 +0100)
committerRoland Häder <roland@mxchange.org>
Fri, 17 Feb 2023 08:13:44 +0000 (09:13 +0100)
- requestIsValid() is now renamed to a propper setter setIsRequestValid() and
  with no default (setters don't have default values)
- updated 'core' framework

application/city/classes/controller/console/class_CityConsoleDefaultNewsController.php
application/city/classes/controller/html/class_CityHtmlLoginFailedController.php
application/city/classes/controller/html/class_CityHtmlLogoutController.php
application/city/classes/filter/verifier/class_CityNameVerifierFilter.php
core

index e41a8200c30fe506a5b50edd04bf7e8089cc9461..ab46954dd0a711203b420ebeb9e7ff45c7e8bd95 100644 (file)
@@ -88,7 +88,7 @@ class CityConsoleDefaultNewsController extends BaseController implements Control
                $this->executePreFilters($requestInstance, $responseInstance);
 
                // This request was valid! :-D
-               $requestInstance->requestIsValid();
+               $requestInstance->setIsRequestValid(TRUE);
 
                // Execute the command
                $commandInstance->execute($requestInstance, $responseInstance);
index 9a8da4445e2ce77700ae25ba1305047bc638df42..58816335e63b59585d02dc5a887a8a1ab06a5f1f 100644 (file)
@@ -76,7 +76,7 @@ class CityHtmlLoginFailedController extends BaseController implements Controller
                $commandInstance = $this->getResolverInstance()->resolveCommandByRequest($requestInstance);
 
                // This request was valid! :-D
-               $requestInstance->requestIsValid();
+               $requestInstance->setIsRequestValid(TRUE);
 
                // Execute the command
                $commandInstance->execute($requestInstance, $responseInstance);
index 990ff383cb7e58e943f7a2845ca8cb67d8e917fa..a09ac8aef0a8b1e9ba52ce2aa67255c307a0686c 100644 (file)
@@ -83,7 +83,7 @@ class CityHtmlLogoutController extends BaseController implements Controller {
                $commandInstance = $this->getResolverInstance()->resolveCommandByRequest($requestInstance);
 
                // This request was valid! :-D
-               $requestInstance->requestIsValid();
+               $requestInstance->setIsRequestValid(TRUE);
 
                // Execute the command
                $commandInstance->execute($requestInstance, $responseInstance);
index cb9e6ca9e27d0c861f1c21932a7d1224157568c4..97e3026994a2774b50aa4da74a48aba9d25fa628 100644 (file)
@@ -76,7 +76,7 @@ class CityNameVerifierFilter extends BaseFilter implements Filterable {
                // Is the city name set?
                if (is_null($cityName)) {
                        // Not found in form so stop the filtering process
-                       $requestInstance->requestIsValid(FALSE);
+                       $requestInstance->setIsRequestValid(FALSE);
 
                        // Add a message to the response
                        $responseInstance->addFatalMessage('city_name_unset');
@@ -85,7 +85,7 @@ class CityNameVerifierFilter extends BaseFilter implements Filterable {
                        throw new FilterChainException($this, self::EXCEPTION_FILTER_CHAIN_INTERCEPTED);
                } elseif (empty($cityName)) {
                        // Empty field!
-                       $requestInstance->requestIsValid(FALSE);
+                       $requestInstance->setIsRequestValid(FALSE);
 
                        // Add a message to the response
                        $responseInstance->addFatalMessage('city_name_empty');
@@ -94,7 +94,7 @@ class CityNameVerifierFilter extends BaseFilter implements Filterable {
                        throw new FilterChainException($this, self::EXCEPTION_FILTER_CHAIN_INTERCEPTED);
                } elseif ($this->ifCityNameIsTaken($cityName) === TRUE) {
                        // City name is already taken
-                       $requestInstance->requestIsValid(FALSE);
+                       $requestInstance->setIsRequestValid(FALSE);
 
                        // Add a message to the response
                        $responseInstance->addFatalMessage('city_name_taken');
diff --git a/core b/core
index ad17ce1c5fe13f2290e74bec676f23e65c2e9100..262f905be8d6f9dc9fd02acc9505cb45ef2a53f6 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit ad17ce1c5fe13f2290e74bec676f23e65c2e9100
+Subproject commit 262f905be8d6f9dc9fd02acc9505cb45ef2a53f6