]> git.mxchange.org Git - city.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Mon, 1 Jan 2018 03:30:14 +0000 (04:30 +0100)
committerRoland Häder <roland@mxchange.org>
Mon, 1 Jan 2018 03:30:14 +0000 (04:30 +0100)
- "imported" classes/interfaces
- created new namespaces
- updated core to latest commit

Signed-off-by: Roland Häder <roland@mxchange.org>
68 files changed:
application/city/class_ApplicationHelper.php
application/city/classes/actions/class_
application/city/classes/actions/class_BaseCityAction.php
application/city/classes/actions/html/city/class_HtmlCityLoginCityMapAction.php
application/city/classes/actions/html/class_HtmlCityLoginGovernmentAction.php
application/city/classes/actions/html/class_HtmlCityLoginLogoutAction.php
application/city/classes/actions/html/class_HtmlCityLoginProfileAction.php
application/city/classes/actions/html/class_HtmlCityLoginStatusProblemAction.php
application/city/classes/actions/html/class_HtmlCityLoginWelcomeAction.php
application/city/classes/city_daemon/class_
application/city/classes/city_daemon/class_BaseCityDaemon.php
application/city/classes/city_daemon/default/class_SimulationDefaultCityDaemon.php
application/city/classes/commands/console/class_CityConsoleDaemonCommand.php
application/city/classes/commands/html/class_CityHtmlCityGuestLoginCommand.php
application/city/classes/commands/html/class_CityHtmlCityMapCommand.php
application/city/classes/commands/html/class_CityHtmlCityRegisterCommand.php
application/city/classes/commands/html/class_CityHtmlCityUserLoginCommand.php
application/city/classes/commands/html/class_CityHtmlConfirmCommand.php
application/city/classes/commands/html/class_CityHtmlDoFormCommand.php
application/city/classes/commands/html/class_CityHtmlHomeCommand.php
application/city/classes/commands/html/class_CityHtmlLoginAreaCommand.php
application/city/classes/commands/html/class_CityHtmlLoginCommand.php
application/city/classes/commands/html/class_CityHtmlLoginFailedCommand.php
application/city/classes/commands/html/class_CityHtmlLogoutCommand.php
application/city/classes/commands/html/class_CityHtmlRegisterCommand.php
application/city/classes/commands/html/class_CityHtmlResendLinkCommand.php
application/city/classes/commands/html/class_HtmlLogoutDoneCommand.php
application/city/classes/controller/console/class_CityConsoleDefaultNewsController.php
application/city/classes/controller/html/class_CityHtmlConfirmController.php
application/city/classes/controller/html/class_CityHtmlDefaultNewsController.php
application/city/classes/controller/html/class_CityHtmlLoginController.php
application/city/classes/controller/html/class_CityHtmlLoginFailedController.php
application/city/classes/controller/html/class_CityHtmlLogoutController.php
application/city/classes/controller/html/class_CityHtmlLogoutDoneController.php
application/city/classes/controller/html/class_CityHtmlRegisterController.php
application/city/classes/controller/html/form/class_CityHtmlDoFormController.php
application/city/classes/controller/html/login/class_CityHtmlLoginAreaController.php
application/city/classes/database/frontend/city/class_CityInformationDatabaseWrapper.php
application/city/classes/factories/city_daemon/class_CityDaemonFactory.php
application/city/classes/filter/bootstrap/city_daemon/class_CityDaemonBootstrap
application/city/classes/filter/bootstrap/city_daemon/class_CityDaemonBootstrapExtraBootstrappingFilter.php
application/city/classes/filter/bootstrap/class_CityDaemonBootstrap
application/city/classes/filter/bootstrap/init/class_CityDaemonBootstrapInitDaemonFilter.php
application/city/classes/filter/city_daemon/class_CityDaemon
application/city/classes/filter/city_daemon/class_CityDaemonInitializationFilter.php
application/city/classes/filter/city_daemon/class_CityDaemonPhpRequirementsFilter.php
application/city/classes/filter/city_daemon/class_CityDaemonWelcomeTeaserFilter.php
application/city/classes/filter/class_
application/city/classes/filter/shutdown/city/class_CityDaemonShutdown
application/city/classes/filter/shutdown/city/class_CityDaemonShutdownCityFilter.php
application/city/classes/filter/shutdown/city/class_CityDaemonShutdownTaskHandlerFilter.php
application/city/classes/filter/task/city_daemon/class_CityDaemonTaskHandlerInitializerFilter.php
application/city/classes/filter/verifier/class_CityNameVerifierFilter.php
application/city/classes/login/class_CityGuestLogin.php
application/city/classes/login/class_CityUserLogin.php
application/city/classes/login/helper/class_CityLoginHelper.php
application/city/classes/manager/city/class_CityManager.php
application/city/classes/registration/class_CityRegistration.php
application/city/classes/resolver/command/console/class_CityConsoleCommandResolver.php
application/city/classes/resolver/command/html/class_CityHtmlCommandResolver.php
application/city/classes/resolver/controller/console/class_CityConsoleControllerResolver.php
application/city/classes/resolver/controller/html/class_CityHtmlControllerResolver.php
application/city/classes/resolver/controller/image/class_CityImageControllerResolver.php
application/city/config.php
application/city/exceptions.php
application/city/interfaces/database/frontend/city/class_CityInformationWrapper.php
application/city/interfaces/helper/city/class_CityHelper.php
core

index 78e01ba1e98fe98e3ecbd37346c4617eef4cabc9..688f5995bf8ee6aa9dff00cbb4466ba66b65aa80 100644 (file)
@@ -163,9 +163,9 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica
         */
        public function setupApplicationData () {
                // Set all application data
-               $this->setAppName('Unit tests and more');
+               $this->setAppName('City Growth Simulation');
                $this->setAppVersion('0.0.0');
-               $this->setAppShortName('tests');
+               $this->setAppShortName('city');
        }
 
        /**
@@ -174,26 +174,14 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica
         * @return      void
         */
        public function initApplication () {
-               // Get config instance
-               $cfg = FrameworkBootstrap::getConfigurationInstance();
-
                // Initialize output system
-               self::createDebugInstance('ApplicationHelper');
+               ApplicationHelper::createDebugInstance('ApplicationHelper');
 
                /*
                 * This application needs a database connection then simply call init
                 * method.
                 */
                FrameworkBootstrap::initDatabaseInstance();
-
-               // Register core tests
-               ClassLoader::registerTestsPath('framework/main/tests');
-
-               // Register own tests
-               ClassLoader::registerTestsPath('application/tests/tests');
-
-               // Scan for them now
-               ClassLoader::scanTestsClasses();
        }
 
        /**
@@ -220,7 +208,7 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica
 
                // Get a controller resolver
                $resolverClass = sprintf(
-                       'Org\Mxchange\CoreFramework\Tests\Resolver\Controller\%s',
+                       'Org\Mxchange\City\Resolver\Controller\%s',
                        self::convertToClassName(sprintf(
                                '%s_%s_controller_resolver',
                                $this->getAppShortName(),
index a89fce5892af28cd2cedacc7963b35389222a637..6ac6067458e754bf85f7a7c02c95a584dc33266d 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Action;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * 
  *
index 6db25818446d3c5caefa464a50164cb9c8570f68..aa27ec467cd26526a9d58c40518d635c6141de74 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Action;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A general action class for city
  *
index 730d68765caa54730f9bb19bcc0d86a3970bea9e..1e701ab3045e959f58038910f7b80bf024a5ab35 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Action\Login;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * An action for the city map page
  *
index 274766747398d00e5ca9b3ba98d3ff82a6143eee..1435c26096ff94788600ba07dbcc1b95dee8652d 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Action\Login;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * An action for the government page
  *
index 46a35d8e19b1adf0fa30f7b0dc112562ff2653b1..cc5aeb727900c4f119561c7466e9698f30005052 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Action\Login;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * An action for logout
  *
index 9acb5d3b68a8131e4657ab933b4ac5590d4bd0d8..e1b73728029b3438a86f0a902553ab83bfd41a10 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Action\Login;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * An action for profile (editing) page
  *
index 168d172c82bf4d1c896c64e5a6cd378ba60f7762..2733295c169b586a463ebdd4836ef9779c7fa5c8 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Action\Login;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * An action for status problem handling
  *
index f3aee4e891fd2c0b1d430712cb22dd059e838884..5fbb1dbbf97e84b4a5752deb24db177e34be194e 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Action\Login;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * An action for the welcome page
  *
index be345955771ab504c1d02c809d10c59d07b4fd93..3733a98443623e470ca6da9bb818b15ef4de6cd8 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Daemon\Simulation;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+
 /**
  * A hub-node class for the '???' mode
  *
index 45757a0218af73281a000f4134e84daa20392a9b..3ba704732991e02b5c617c43635bad028fa2d1ff 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Daemon;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A general City class
  *
index 759f05a425620c8010cf7d501661f3349b3921a5..67353346c5999e490fe652566955d5e59985049e 100644 (file)
@@ -1,4 +1,13 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Daemon\Simulation;
+
+// Import own stuff
+use Org\Mxchange\City\Daemon\BaseCityDaemon;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+
 /**
  * The default city daemon
  *
index de4e495e54690f52b3d25689c5fae7ac88510c57..ca8f5fe30cc32bdc27a56c36f0e9445afe9fbeb2 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Command;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A command for the 'daemon' routine
  *
index e1d8d4a9fd5f605acd3706e63e73c086526c2a7d..4f83286cdb58158949dda397d02e0d049b53c5ad 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Command;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A command for guest logins
  *
index ce56651ecfb49fd3b4799bfbfd98bd4e28219e3d..c7fe40b5d2483424f21fa4983d4e4d2f88cb030f 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Command;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A command for the city map
  *
index c555b10ace2791575d0fbed5c43ae3c1bebc7e14..4732ccd062b607a7933196ee92b092a1500a84e2 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Command;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A command for registration form (POST) handling
  *
index 02d30b91a5869797557b88c9e89e83de36bbdfbc..886093900f98c3fada3ce65fdd20c6143191f095 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Command;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A command for user login
  *
index 40636c6682c0e15c9b3299ddebea776933e57e9d..c97205e2504415e01c1e67f8f8079e1c051c159b 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Command;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A command for the confirmation link handling
  *
index 499d6044fd1ac24c9b6236d23223b43f50e2f9f3..615c86b44e2844e54215af300e8a9205f31434e2 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Command;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A command for the form processor
  *
index 77f6e73276fc7c6ab4dbf556bba6276e1e4986aa..e23348abdc1128b735e5880b28c6083bfed45b5e 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Command;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A command for the 'main' routine
  *
index 60cab3f3e14428dadf619569ebd26d7c47249065..aee209cd41568ca33ad8cb8523a9798184abf1b9 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Command;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A command for the login area (member/gamer area)
  *
index bd1327d1f42b734634d99ea0c91dfe9672f9c85c..fafbf1fc4845af5b0702871ca66f95fdd100ca62 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Command;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A command for the login form
  *
index 8bfcf4103a69219fc2516fcc2d86f351e8bab84b..7a645258b8bb9e07ae5e2b91a6d92b50ce385488 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Command;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A command for the login failed page
  *
index cbf51972072a7c0c8c855933132c19f61fcf0f7b..17f97101a0a4f689843146c69004f2c5092a432c 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Command;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A command for logout
  *
index 17f256debd589b8da47f38405f8858e5078fc9eb..7a1bc3c90a9bdcd56a708211a6f8a8fa747ac430 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Command;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A command for registration handling
  *
index 73e4f48d41bfce005e05820f718dff7f9e2b1942..e3ff35f3c9bd98ea3dc0c4d17a5f0c2ac2bc8a13 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Command;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A command class for resending the confirmation link
  *
index 28f0d0fd53522e811bc1f719a3ae5d68d331f849..6b57424bdab2ba32de8af4b7db499dc1df51ea64 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Command;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A command for the login failed page
  *
index 9379b5ef9154da35a82eecd3e7b11697ec8e8147..81fb7ffab8d8113b522fec8cb581596c0173b2c4 100644 (file)
@@ -1,4 +1,13 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Controller;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Controller\BaseController;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * The default controller with news for e.g. home or news page
  *
index be70e6ec1bfa70f2add8742d2ffae14cf0c009a8..6b2e5415465f162d320826f125660efe3ac99701 100644 (file)
@@ -1,4 +1,13 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Controller\Confirmed;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Controller\BaseController;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * Controller for confirmation link
  *
index 709fd07ca1277ab264bc429e3ff0b318af3f874d..4a99543ceb00e8267c7f744896d3b683d343886f 100644 (file)
@@ -1,4 +1,13 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Controller;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Controller\BaseController;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * The default controller with news for e.g. home or news page
  *
index f155f676d1f82dae633c5666defd072832d8bedd..0256ea159bc1eb7446a84f19d526debd5fb38c17 100644 (file)
@@ -1,4 +1,13 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Controller\Login;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Controller\BaseController;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * Controller for login form with password reminder and maybe enabled
  * "guest-login" button
index 136f1fca6e1ca878bcf3e73364108c4441d78402..2e6a5269dc33bf2f722581cceee03d871e1e53f2 100644 (file)
@@ -1,4 +1,13 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Controller\LoginFailed;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Controller\BaseController;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A controller for login failed page
  *
index ce7e1dd2f404a8292312b961c75d13ca312da0ce..7a1155cbe225f3c8083057f9214fbf8df9726c09 100644 (file)
@@ -1,4 +1,13 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Controller\Logout;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Controller\BaseController;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * The default controller for logout page
  *
index a8f003139e45da8dc24ce4ea53df55df969339a1..c3bb7eb9e7b86a014ab8845d9ec0f1944ce6d347 100644 (file)
@@ -1,4 +1,13 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Controller\LogoutDone;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Controller\BaseController;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * Controller for logout done page
  *
index 1e81ca4cce8fd1efb627bbeb87af4e539bf982c6..03a658ada74a2c083ef2db969c1a50237376bdf6 100644 (file)
@@ -1,4 +1,13 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Controller\Register;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Controller\BaseController;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * Controller for register form
  *
index efeb3e2570d24ea24fe0c18752535716caa9df72..43c3565cf49595ee58f627603c0a29a5602ed865 100644 (file)
@@ -1,4 +1,13 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Controller\DoForm;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Controller\BaseController;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A controller for handling sent forms
  *
index 2b3e12361cbc0e2d5cbddc769f4a9eb6c9e1bf46..4334052c93aa726a4b6e0b83806e26315c5b903b 100644 (file)
@@ -1,4 +1,13 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Controller\LoginArea;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Controller\BaseController;
+use Org\Mxchange\CoreFramework\Controller\Controller;
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * Controller for login area with news
  *
index c9f53a9cf82f849ebb517a8972e49ff568f1cbfa..56539b2de1dd98d058e0b6141506b6ea4718e28e 100644 (file)
@@ -1,4 +1,13 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Database\Frontend\Information;
+
+// Import own stuff
+use Org\Mxchange\City\Daemon\BaseCityDaemon;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+
 /**
  * A database wrapper for city informations
  *
index dc6b1d5da1f5e2c3bb9940ff60ea2e84ed7d48df..d25ca223bf4da75860ea092972749e60e359852c 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Daemon\Factory;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A factory class for cities
  *
index 3da5633f649f075fe258d89dca0cca43dc4257c6..e9ff89ba46a48a4096c831f2026277c1872213ba 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Daemon\Filter\Bootstrap;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A ??? filter for bootstrapping
  *
index 9e9e75ecbcc1bb28927061bd2dace9402ab1469c..d1840eb159087d616793f6e5f3c83c6427489ffe 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Daemon\Filter\Bootstrap;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A ExtraBootstrapping filter for bootstrapping
  *
index 54246ae3e7dae308746930ba6e5a6b6ce097a0e1..38b096f266d9130ef292511fe1e4bd1a2f97e3b6 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Daemon\Filter\Bootstrap;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A bootstrap ??? filter for daemon
  *
index 2b5edb6b325614ae98090a0b185088c48f67e9c4..34aca07dab1f9db123d651a2b1c86a669673aa39 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Daemon\Filter\Bootstrap;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A bootstrap InitDaemon filter for daemon
  *
index 9cde6ee910afd95bb50766f62e5269514d26744c..a91b26517b70ecf1da50ba8ed9a7175f4141f642 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Daemon\Filter;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A ??? filter for citys
  *
index acef3188b65d18da7639493621b6ef221acbf292..e94f998b3064943618dc8f39d128aeeff533043c 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Daemon\Filter\Initialization;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A Initialization filter for cities
  *
index 8ec734fdcdb63b9f158c1a4710aebbc7de2dfd1f..31e68a3db51f88cea3b0288ea8afe66199e820b8 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Daemon\Filter;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A PhpRequirements filter for cities
  *
index 952df5c4eb584989dd953a583e2cedc540146ef0..45148ffea94bef760e94f56641beb3d899aad948 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Daemon\Filter;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A welcome-teaser filter for the console
  *
index 88871ee0e257490f94f3bb85afd039ecf3b1e7a5..14ac2dd2ffa62f35e7b9f4749442579a3a161d2e 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\!!!\Filter;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A ??? filter for !!!
  *
index f1b246dfa7e69544fbb6ad212b9b7198569d689a..2d151fa9ca5317b704eaecfad283da3f835f5503 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Daemon\Filter\Shutdown;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A ??? filter for shutting down the city.
  *
index ecca1661b9f0be63c4ad9fb41a9482d1999e6066..12c3d470f500ef7b408b6465104553f43a017221 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Daemon\Filter\Shutdown;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A ShutdownCity filter for shutting down the city. This filter should be the
  * last one in 'shutdown' chain so the hub is shutted down at the very end of
index 03b46711473b4472fe3afd6161357da167dd3a90..8eb3714ee2b23160b866a1a686667ec8f56674e2 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Daemon\Filter\Shutdown;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A TaskHandler filter for shutting down the city.
  *
index ce13fe520aab0f10f2c4346967dbfeb11d4ac425..33996c5f31cd795c198ace94066ed35998abd908 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Daemon\Filter\Tasks;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A TaskHandlerInitializer filter for hubs
  *
index fc7609701005c73f55001e20c1da73df4a15c672..4770b8bf27bf020307bf8234edc0753e9fe53ead 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Filter\Verifier;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A concrete filter for verfying the city name. This filter may intercept the
  * filter chain if no city name is given or if supplied city name has an invalid
index 11a938ffb1eb8f55ff812568385e831d9aab6cd4..ba59ea580cd16102016317f689dfb375f904b596 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Login\Guest;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A special guest login class for City
  *
index a0bf3b732a6d7e801b2504bccefc5164d9054abf..b01467edc39d0914ff43b67e16724596ebc47994 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Login\User;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A special login class for City
  *
index 17d4de2d4f328c367f9d58e544ff97eaa0ab6c38..924944dc92c0b67535059dbb6dd36de845c95c95 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Helper\Login;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+
 /**
  * A helper for City to login. This login helper first checks what setting
  * (cookie or session) the admin has choosen then overwrites it with the setting
index 0eb60601b03a3188e0b74f16d56cfc8944f8aae3..eb045a81c24d1dd05593e49528dfbf978df6ec90 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Manager\City;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * A City manager
  *
index 2503258b6c542a238626d4619e283b9e09e89a41..6f7ef43959fcdab47d9132d4823120b81f8f5450 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Registration;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+
 /**
  * A user registration class specially for City
  *
index 4f17a7b19065bbcc2ecc1a9f974bd1a334bab581..634d73e84ebbd672b02bd3263c3a6e33a1ced4f6 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Resolver\Command;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
+
 /**
  * A command resolver for console commands
  *
index ea492be5b7aa2fa63d66077c6fbfd18d4e087fb8..30e533929eea9d171f0530b17d8e6286e5cee7e7 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Resolver\Command;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
+
 /**
  * A command resolver for HTML commands
  *
index a4b6d8a683a661dd78abf99658adc940d704f568..1cee1ae102b00a02aa20b8729acaeaac1b51435c 100644 (file)
@@ -1,4 +1,12 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Resolver\Controller;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
+use Org\Mxchange\CoreFramework\Resolver\Controller\BaseControllerResolver;
+use Org\Mxchange\CoreFramework\Resolver\Controller\ControllerResolver;
+
 /**
  * A resolver for resolving controllers locally
  *
@@ -52,7 +60,7 @@ class CityConsoleControllerResolver extends BaseControllerResolver implements Co
                if (empty($controllerName)) {
                        // Then thrown an exception here
                        throw new EmptyVariableException(array($resolverInstance, 'controllerName'), self::EXCEPTION_UNEXPECTED_EMPTY_STRING);
-               } elseif ($resolverInstance->isControllerValid($controllerName) === FALSE) {
+               } elseif ($resolverInstance->isControllerValid('Org\Mxchange\City\Controller', $controllerName) === FALSE) {
                        // Invalid controller found
                        throw new InvalidControllerException(array($resolverInstance, $controllerName), self::EXCEPTION_INVALID_CONTROLLER);
                }
index 45168d72e388416313bcf45c08dae65e3ba7ac6c..cb15a700ea7edc0229f426a4be1db4f630371fac 100644 (file)
@@ -1,4 +1,12 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Resolver\Controller;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
+use Org\Mxchange\CoreFramework\Resolver\Controller\BaseControllerResolver;
+use Org\Mxchange\CoreFramework\Resolver\Controller\ControllerResolver;
+
 /**
  * A resolver for resolving controllers locally
  *
@@ -52,7 +60,7 @@ class CityHtmlControllerResolver extends BaseControllerResolver implements Contr
                if (empty($controllerName)) {
                        // Then thrown an exception here
                        throw new EmptyVariableException(array($resolverInstance, 'controllerName'), self::EXCEPTION_UNEXPECTED_EMPTY_STRING);
-               } elseif ($resolverInstance->isControllerValid($controllerName) === FALSE) {
+               } elseif ($resolverInstance->isControllerValid('Org\Mxchange\City\Controller', $controllerName) === FALSE) {
                        // Invalid controller found
                        throw new InvalidControllerException(array($resolverInstance, $controllerName), self::EXCEPTION_INVALID_CONTROLLER);
                }
index de17cf35500907a37599a725460b9008ec54cdd4..d8483b33ebe5e2c60338525ab01d829a4a3f448c 100644 (file)
@@ -1,4 +1,12 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Resolver\Controller;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Manager\ManageableApplication;
+use Org\Mxchange\CoreFramework\Resolver\Controller\BaseControllerResolver;
+use Org\Mxchange\CoreFramework\Resolver\Controller\ControllerResolver;
+
 /**
  * A resolver for resolving controllers locally
  *
@@ -52,7 +60,7 @@ class CityImageControllerResolver extends BaseControllerResolver implements Cont
                if (empty($controllerName)) {
                        // Then thrown an exception here
                        throw new EmptyVariableException(array($resolverInstance, 'controllerName'), self::EXCEPTION_UNEXPECTED_EMPTY_STRING);
-               } elseif ($resolverInstance->isControllerValid($controllerName) === FALSE) {
+               } elseif ($resolverInstance->isControllerValid('Org\Mxchange\City\Controller', $controllerName) === FALSE) {
                        // Invalid controller found
                        throw new InvalidControllerException(array($resolverInstance, $controllerName), self::EXCEPTION_INVALID_CONTROLLER);
                }
index 234f055e31366ab353e1a3c61267a7bb11454458..65718291f86aed2f4d1a5a29ce1fc98560f575d6 100644 (file)
@@ -32,7 +32,7 @@ $cfg = FrameworkBootstrap::getConfigurationInstance();
  ******************************************************************************/
 
 // CFG: CITY-DEFAULT-MODE (more is coming)
-$cfg->setConfigEntry('city_default_mode', BaseCityDaemon::CITY_TYPE_DEFAULT);
+$cfg->setConfigEntry('city_default_mode', 'default');
 
 // CFG: NEWS-DOWNLOAD-FILTER
 $cfg->setConfigEntry('news_download_filter', 'NewsDownloadFilter');
index 3538bd31dbe85bcf1a5ef49348df432255e9408e..12c5c09b8ba1ac7501b3f6c7da6f5bcc8b2fba21 100644 (file)
@@ -26,7 +26,7 @@ use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
  */
 
 // The node's own exception handler
-function tests_exception_handler ($exceptionInstance) {
+function city_exception_handler ($exceptionInstance) {
        // Is it an object and a valid instance?
        if ((is_object($exceptionInstance)) && ($exceptionInstance instanceof Exception)) {
                // Init variable
@@ -101,7 +101,7 @@ Backtrace:
 }
 
 // Error handler
-function tests_error_handler ($errno, $errstr, $errfile, $errline, array $errcontext) {
+function city_error_handler ($errno, $errstr, $errfile, $errline, array $errcontext) {
        // Construct the message
        $message = sprintf('File: %s, Line: %s, Code: %s, Message: %s',
                basename($errfile),
@@ -115,7 +115,7 @@ function tests_error_handler ($errno, $errstr, $errfile, $errline, array $errcon
 } // END - function
 
 // Assertion handler
-function tests_assert_handler ($file, $line, $code) {
+function city_assert_handler ($file, $line, $code) {
        // Empty code?
        if ($code === '') {
                $code = '<em>Unknown</em>';
@@ -136,14 +136,14 @@ function tests_assert_handler ($file, $line, $code) {
 } // END - function
 
 // Set error handler
-//set_error_handler('tests_error_handler');
+//set_error_handler('city_error_handler');
 
 // Set the new handler
-set_exception_handler('tests_exception_handler');
+set_exception_handler('city_exception_handler');
 
 // Init assert handling
 assert_options(ASSERT_ACTIVE    , true);
 assert_options(ASSERT_WARNING   , false);
 assert_options(ASSERT_BAIL      , true);
 assert_options(ASSERT_QUIET_EVAL, false);
-assert_options(ASSERT_CALLBACK  , 'tests_assert_handler');
+assert_options(ASSERT_CALLBACK  , 'city_assert_handler');
index 75c3d2e2096bf82abd13897e1c8a4b17100286e0..370dc043444339127bc15d875656640763bf3d0f 100644 (file)
@@ -1,4 +1,13 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Database\Frontend\Information;
+
+// Import own stuff
+use Org\Mxchange\City\Daemon\BaseCityDaemon;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+
 /**
  * An interface for city-information (database) wrapper
  *
index c3256398d3bb32b34bac738af44de3ac37667a06..4c57cf66eb26729e615c5965700a5eaa7f8130a3 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Helper;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Request\Requestable;
+use Org\Mxchange\CoreFramework\Response\Responseable;
+
 /**
  * An interface for "city-helper" classes
  *
diff --git a/core b/core
index d3194bf4fa92124e55cfc596e50abca8e6303944..1abe7710d866014d74aebda110633e29bf907dee 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit d3194bf4fa92124e55cfc596e50abca8e6303944
+Subproject commit 1abe7710d866014d74aebda110633e29bf907dee