]> git.mxchange.org Git - city.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Tue, 6 Mar 2018 21:59:16 +0000 (22:59 +0100)
committerRoland Häder <roland@mxchange.org>
Tue, 6 Mar 2018 21:59:16 +0000 (22:59 +0100)
- added new namespaces to classes and config entries
- imported classes/interfaces
- initialized language system, not required for daemon but for website
- updated 'core' framework to latest commit

Signed-off-by: Roland Häder <roland@mxchange.org>
12 files changed:
application/city/class_ApplicationHelper.php
application/city/classes/menu/class_CityConfirmMenu.php
application/city/classes/menu/class_CityHomeMenu.php
application/city/classes/menu/class_CityLoginAreaMenu.php
application/city/classes/menu/class_CityLoginFailedMenu.php
application/city/classes/menu/class_CityLoginMenu.php
application/city/classes/menu/class_CityLogoutMenu.php
application/city/classes/menu/class_CityRegisterMenu.php
application/city/classes/menu/class_CityStatusMenu.php
application/city/classes/menu/government/class_CityGovernmentFailedAreaMenu.php
application/city/config.php
core

index 9ced8a1907719485ae326bd48a50e8d3d00c1451..794635c1c2b0b3d5e140d5fd5308794642136311 100644 (file)
@@ -219,6 +219,12 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica
                // Get a controller instance as well
                $this->setControllerInstance($resolverInstance->resolveController());
 
+               // Initialize language system
+               $languageInstance = ObjectFactory::createObjectByConfiguredName('language_system_class');
+
+               // And set it here
+               $this->setLanguageInstance($languageInstance);
+
                // Launch the test suite here
                $this->getControllerInstance()->handleRequest($requestInstance, $responseInstance);
 
index 3a020361b5379db2889d5b1683d6479a9f4699e5..f4646ae094a634ace474b984846f6a85db0aa8f5 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Menu\Guest;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Menu\BaseMenu;
+use Org\Mxchange\CoreFramework\Menu\RenderableMenu;
+
 /**
  * A Confirm menu class for City
  *
index 1e0b943a396c67dc3ac257ea94b1209fc8a51db7..c9ed8aa85c6c4d29794509c9530e9f5e9d090714 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Menu\General;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Menu\BaseMenu;
+use Org\Mxchange\CoreFramework\Menu\RenderableMenu;
+
 /**
  * A menu class for City
  *
@@ -22,6 +29,7 @@
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 class CityHomeMenu extends BaseMenu implements RenderableMenu {
+
        /**
         * Protected constructor
         *
@@ -44,4 +52,5 @@ class CityHomeMenu extends BaseMenu implements RenderableMenu {
                // Return the prepared instance
                return $menuInstance;
        }
+
 }
index 52a590378d8cf8b6c98aa158816a2e2575a7add4..f14095eebb7c0ca8bd86bdb0778ab2e8997611a5 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Menu\Login;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Menu\BaseMenu;
+use Org\Mxchange\CoreFramework\Menu\RenderableMenu;
+
 /**
  * A menu class for City
  *
index 25125fc2d9bb4c04b1faa9c8d1267d355e2f6e8c..fa17bfa7db331fa0eb0fab72f0c049295c0e9198 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Menu\Guest;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Menu\BaseMenu;
+use Org\Mxchange\CoreFramework\Menu\RenderableMenu;
+
 /**
  * A LoginFailed menu class for City
  *
index e2be32c4ec5adf9f79ad782107dc311fc0f3a4ce..f99c2734ab1ad3c31bbe36aab593e8572b1577a8 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Menu\Login;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Menu\BaseMenu;
+use Org\Mxchange\CoreFramework\Menu\RenderableMenu;
+
 /**
  * A menu class for City
  *
index 7d3e85efc83a16f026f421a7ccba33da718db002..f08c2a1f734309e988fab6ec2e8c8113e1576219 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Menu\Login;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Menu\BaseMenu;
+use Org\Mxchange\CoreFramework\Menu\RenderableMenu;
+
 /**
  * A menu class for City
  *
index a1182ce924387fa36fcc90da80a7f99ef6fb7070..4be38c2b41b8369a0aa81d038a11fe0de46e29e6 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Menu\Guest;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Menu\BaseMenu;
+use Org\Mxchange\CoreFramework\Menu\RenderableMenu;
+
 /**
  * A menu class for City registration
  *
index 06d04b28e9f824c4422fc5dcfd46cc370c57cae4..c0e4b98f031cf81e2fde49f38b3d4a1f64b5576e 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Menu\General;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Menu\BaseMenu;
+use Org\Mxchange\CoreFramework\Menu\RenderableMenu;
+
 /**
  * A Status menu class for City
  *
index d52f478c74d9cf36effdeb01f4850c745ef8f716..830f6767e83d37682e5186041803f56789cef0fc 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+// Own namespace
+namespace Org\Mxchange\City\Menu\Government;
+
+// Import framework stuff
+use Org\Mxchange\CoreFramework\Menu\BaseMenu;
+use Org\Mxchange\CoreFramework\Menu\RenderableMenu;
+
 /**
  * A menu class for City
  *
index 28745ee9296caf026894a290b272f1fe8957631c..8b1d9b7b16fbe0886191a14bd3b3a61980f0ff76 100644 (file)
@@ -47,13 +47,13 @@ $cfg->setConfigEntry('news_reader_class', 'Org\Mxchange\CoreFramework\Reader\New
 $cfg->setConfigEntry('city_info_db_wrapper_class', 'Org\Mxchange\City\Database\Frontend\Information\CityInformationDatabaseWrapper');
 
 // CFG: REGION-INFO-DB-WRAPPER-CLASS
-$cfg->setConfigEntry('region_info_db_wrapper_class', 'RegionInformationDatabaseWrapper');
+$cfg->setConfigEntry('region_info_db_wrapper_class', 'Org\Mxchange\City\Database\Frontend\RegionInformation\RegionInformationDatabaseWrapper');
 
 // CFG: GAME-OPTIONS-DB-WRAPPER-CLASS
-$cfg->setConfigEntry('game_options_db_wrapper_class', 'CityGameOptionsDatabaseWrapper');
+$cfg->setConfigEntry('game_options_db_wrapper_class', 'Org\Mxchange\City\Database\Frontend\GameOptions\CityGameOptionsDatabaseWrapper');
 
 // CFG: REGION-MAP-DB-WRAPPER-CLASS
-$cfg->setConfigEntry('region_map_db_wrapper_class', 'RegionMapDatabaseWrapper');
+$cfg->setConfigEntry('region_map_db_wrapper_class', 'Org\Mxchange\City\Database\Frontend\Region\RegionMapDatabaseWrapper');
 
 // CFG: CITY-SECTIONS-DB-WRAPPER-CLASS
 $cfg->setConfigEntry('city_sections_db_wrapper_class', 'Org\Mxchange\City\Database\Frontend\Sections\CitySectionsDatabaseWrapper');
@@ -80,8 +80,8 @@ $cfg->setConfigEntry('city_active_state_class', 'Org\Mxchange\City\State\Active\
 // CFG: DEFAULT-HTML-COMMAND
 $cfg->setConfigEntry('default_html_command', 'home');
 
-// CFG: DEFAULT-CITY-HTML-COMMAND
-$cfg->setConfigEntry('default_city_html_command', 'home');
+// CFG: DEFAULT-CITY-HTTP-COMMAND
+$cfg->setConfigEntry('default_city_http_command', 'home');
 
 // CFG: DEFAULT-HTML-CONTROLLER
 $cfg->setConfigEntry('default_html_controller', 'home');
@@ -90,43 +90,43 @@ $cfg->setConfigEntry('default_html_controller', 'home');
 $cfg->setConfigEntry('default_city_html_controller', 'home');
 
 // CFG: CITY-HTML-CMD-HOME-RESOLVER-CLASS
-$cfg->setConfigEntry('city_html_cmd_home_resolver_class', 'CityHtmlCommandResolver');
+$cfg->setConfigEntry('city_html_cmd_home_resolver_class', 'Org\Mxchange\City\Resolver\Command\CityHtmlCommandResolver');
 
 // CFG: CITY-HTML-CMD-REGISTER-RESOLVER-CLASS
-$cfg->setConfigEntry('city_html_cmd_register_resolver_class', 'CityHtmlCommandResolver');
+$cfg->setConfigEntry('city_html_cmd_register_resolver_class', 'Org\Mxchange\City\Resolver\Command\CityHtmlCommandResolver');
 
 // CFG: CITY-HTML-CMD-LOGIN-RESOLVER-CLASS
-$cfg->setConfigEntry('city_html_cmd_login_resolver_class', 'CityHtmlCommandResolver');
+$cfg->setConfigEntry('city_html_cmd_login_resolver_class', 'Org\Mxchange\City\Resolver\Command\CityHtmlCommandResolver');
 
 // CFG: CITY-HTML-CMD-LOGIN-FAILED-RESOLVER-CLASS
-$cfg->setConfigEntry('city_html_cmd_login_failed_resolver_class', 'CityHtmlCommandResolver');
+$cfg->setConfigEntry('city_html_cmd_login_failed_resolver_class', 'Org\Mxchange\City\Resolver\Command\CityHtmlCommandResolver');
 
 // CFG: CITY-HTML-CMD-LOGOUT-DONE-RESOLVER-CLASS
-$cfg->setConfigEntry('city_html_cmd_logout_done_resolver_class', 'HtmlCommandResolver');
+$cfg->setConfigEntry('city_html_cmd_logout_done_resolver_class', 'Org\Mxchange\City\Resolver\Command\CityHtmlCommandResolver');
 
 // CFG: NEWS-READER-HOME-CLASS
-$cfg->setConfigEntry('news_reader_home_class', 'DefaultNewsReader');
+$cfg->setConfigEntry('news_reader_home_class', 'Org\Mxchange\CoreFramework\Reader\News\DefaultNewsReader');
 
 // CFG: NEWS-READER-REGISTER-CLASS
-$cfg->setConfigEntry('news_reader_register_class', 'DefaultNewsReader');
+$cfg->setConfigEntry('news_reader_register_class', 'Org\Mxchange\CoreFramework\Reader\News\DefaultNewsReader');
 
 // CFG: NEWS-READER-LOGIN-AREA-CLASS
-$cfg->setConfigEntry('news_reader_login_area_class', 'DefaultNewsReader');
+$cfg->setConfigEntry('news_reader_login_area_class', 'Org\Mxchange\CoreFramework\Reader\News\DefaultNewsReader');
 
 // CFG: NEWS-READER-LOGIN-AREA-PROFILE-CLASS
-$cfg->setConfigEntry('news_reader_login_area_profile_class', 'DefaultNewsReader');
+$cfg->setConfigEntry('news_reader_login_area_profile_class', 'Org\Mxchange\CoreFramework\Reader\News\DefaultNewsReader');
 
 // CFG: NEWS-READER-LOGIN-AREA-STATUS-PROBLEM-CLASS
-$cfg->setConfigEntry('news_reader_login_area_status_problem_class', 'DefaultNewsReader');
+$cfg->setConfigEntry('news_reader_login_area_status_problem_class', 'Org\Mxchange\CoreFramework\Reader\News\DefaultNewsReader');
 
 // CFG: NEWS-READER-LOGIN-AREA-CITY-MAP-CLASS
-$cfg->setConfigEntry('news_reader_login_area_city_map_class', 'DefaultNewsReader');
+$cfg->setConfigEntry('news_reader_login_area_city_map_class', 'Org\Mxchange\CoreFramework\Reader\News\DefaultNewsReader');
 
 // CFG: NEWS-READER-LOGIN-AREA-GOVERNMENT-CLASS
-$cfg->setConfigEntry('news_reader_login_area_government_class', 'DefaultNewsReader');
+$cfg->setConfigEntry('news_reader_login_area_government_class', 'Org\Mxchange\CoreFramework\Reader\News\DefaultNewsReader');
 
 // CFG: NEWS-READER-LOGIN-AREA-LOGOUT-CLASS
-$cfg->setConfigEntry('news_reader_login_area_logout_class', 'DefaultNewsReader');
+$cfg->setConfigEntry('news_reader_login_area_logout_class', 'Org\Mxchange\CoreFramework\Reader\News\DefaultNewsReader');
 
 // CFG: NEWS-HOME-LIMIT
 $cfg->setConfigEntry('news_home_limit', 10);
@@ -138,31 +138,31 @@ $cfg->setConfigEntry('news_register_limit', 5);
 $cfg->setConfigEntry('news_login_area_limit', 5);
 
 // CFG: CITY-HOME-MENU-CLASS
-$cfg->setConfigEntry('city_home_menu_class', 'CityHomeMenu');
+$cfg->setConfigEntry('city_home_menu_class', 'Org\Mxchange\City\Menu\General\CityHomeMenu');
 
 // CFG: CITY-REGISTER-MENU-CLASS
-$cfg->setConfigEntry('city_register_menu_class', 'CityRegisterMenu');
+$cfg->setConfigEntry('city_register_menu_class', 'Org\Mxchange\City\Menu\Guest\CityRegisterMenu');
 
 // CFG: LOGIN-FAILED-MENU-CLASS
-$cfg->setConfigEntry('login_failed_menu_class', 'CityLoginFailedMenu');
+$cfg->setConfigEntry('login_failed_menu_class', 'Org\Mxchange\City\Menu\Guest\CityLoginFailedMenu');
 
 // CFG: STATUS-MENU-CLASS
-$cfg->setConfigEntry('status_menu_class', 'CityStatusMenu');
+$cfg->setConfigEntry('status_menu_class', 'Org\Mxchange\City\Menu\General\CityStatusMenu');
 
 // CFG: LOGIN-MENU-CLASS
-$cfg->setConfigEntry('login_menu_class', 'CityLoginMenu');
+$cfg->setConfigEntry('login_menu_class', 'Org\Mxchange\City\Menu\Login\CityLoginMenu');
 
 // CFG: LOGOUT-MENU-CLASS
-$cfg->setConfigEntry('logout_menu_class', 'CityLogoutMenu');
+$cfg->setConfigEntry('logout_menu_class', 'Org\Mxchange\City\Menu\Login\CityLogoutMenu');
 
 // CFG: REGISTER-MENU-CLASS
-$cfg->setConfigEntry('register_menu_class', 'CityRegisterMenu');
+$cfg->setConfigEntry('register_menu_class', 'Org\Mxchange\City\Menu\Guest\CityRegisterMenu');
 
 // CFG: CONFIRM-MENU-CLASS
-$cfg->setConfigEntry('confirm_menu_class', 'CityConfirmMenu');
+$cfg->setConfigEntry('confirm_menu_class', 'Org\Mxchange\City\Menu\Guest\CityConfirmMenu');
 
 // CFG: LOGIN-AREA-MENU-CLASS
-$cfg->setConfigEntry('login_area_menu_class', 'CityLoginAreaMenu');
+$cfg->setConfigEntry('login_area_menu_class', 'Org\Mxchange\City\Menu\Login\CityLoginAreaMenu');
 
 // CFG: GOVERNMENT-FAILED-AREA-MENU-CLASS
 $cfg->setConfigEntry('government_failed_area_menu_class', 'CityGovernmentFailedAreaMenu');
@@ -321,19 +321,19 @@ $cfg->setConfigEntry('city_name_verifier_filter', 'CityNameVerifierFilter');
 $cfg->setConfigEntry('user_status_filter', 'UserStatusVerifierFilter');
 
 // CFG: CITY-HTML-CMD-DO-FORM-RESOLVER-CLASS
-$cfg->setConfigEntry('city_html_cmd_do_form_resolver_class', 'CityHtmlCommandResolver');
+$cfg->setConfigEntry('city_html_cmd_do_form_resolver_class', 'Org\Mxchange\City\Resolver\Command\CityHtmlCommandResolver');
 
 // CFG: CITY-HTML-CMD-LOGIN-AREA-RESOLVER-CLASS
-$cfg->setConfigEntry('city_html_cmd_login_area_resolver_class', 'CityHtmlCommandResolver');
+$cfg->setConfigEntry('city_html_cmd_login_area_resolver_class', 'Org\Mxchange\City\Resolver\Command\CityHtmlCommandResolver');
 
 // CFG: CITY-HTML-CMD-CONFIRM-RESOLVER-CLASS
-$cfg->setConfigEntry('city_html_cmd_confirm_resolver_class', 'CityHtmlCommandResolver');
+$cfg->setConfigEntry('city_html_cmd_confirm_resolver_class', 'Org\Mxchange\City\Resolver\Command\CityHtmlCommandResolver');
 
 // CFG: CITY-HTML-CMD-PROBLEM-RESOLVER-CLASS
-$cfg->setConfigEntry('city_html_cmd_problem_resolver_class', 'CityHtmlCommandResolver');
+$cfg->setConfigEntry('city_html_cmd_problem_resolver_class', 'Org\Mxchange\City\Resolver\Command\CityHtmlCommandResolver');
 
 // CFG: CITY-HTML-CMD-LOGOUT-RESOLVER-CLASS
-$cfg->setConfigEntry('city_html_cmd_logout_resolver_class', 'CityHtmlCommandResolver');
+$cfg->setConfigEntry('city_html_cmd_logout_resolver_class', 'Org\Mxchange\City\Resolver\Command\CityHtmlCommandResolver');
 
 // CFG: EMAIL-CHANGE-ALLOWED
 $cfg->setConfigEntry('email_change_allowed', 'Y');
diff --git a/core b/core
index 5135152658d9678af5871e0cd9ad86c259ad1e5c..2f930fd62f97e06a6b90afb971cce6343522f9b9 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit 5135152658d9678af5871e0cd9ad86c259ad1e5c
+Subproject commit 2f930fd62f97e06a6b90afb971cce6343522f9b9