]> git.mxchange.org Git - city.git/blobdiff - application/city/classes/controller/html/form/class_CityHtmlDoFormController.php
Continued:
[city.git] / application / city / classes / controller / html / form / class_CityHtmlDoFormController.php
index d9ffedd0b80f017bc59f5b70e2ee6dfbb8950612..3bc9d0a5c3bccbe8e55051a29f7a27c7c888a68e 100644 (file)
@@ -14,7 +14,7 @@ use Org\Mxchange\CoreFramework\Response\Responseable;
  *
  * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2015, 2016 City Developer Team
+ * @copyright  Copyright (c) 2015 - 2023 City Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.shipsimu.org
  *
@@ -42,9 +42,9 @@ class CityHtmlDoFormController extends BaseController implements Controller {
                parent::__construct(__CLASS__);
 
                // Init additional filter chains
-               foreach (array('shutdown') as $filterChain) {
+               foreach (['shutdown'] as $filterChain) {
                        $this->initFilterChain($filterChain);
-               } // END - foreach
+               }
        }
 
        /**
@@ -79,7 +79,7 @@ class CityHtmlDoFormController extends BaseController implements Controller {
                $formAction = $requestInstance->getRequestElement('form');
 
                // Get command instance from resolver
-               $commandInstance = $this->getResolverInstance()->resolveCommand($formAction);
+               $commandInstance = $this->getResolverInstance()->resolveCommand('Org\Mxchange\City\Command', $formAction);
 
                // Add more filters by the command
                $commandInstance->addExtraFilters($this, $requestInstance);
@@ -106,7 +106,7 @@ class CityHtmlDoFormController extends BaseController implements Controller {
 
                        // Execute *very* generic ppost filters
                        $this->executePostFilters($requestInstance, $responseInstance);
-               } // END - if
+               }
 
                // Flush the buffer out
                $responseInstance->flushBuffer();