From 04748d47c23342c8fda406fbcb564c37cb73f98b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 10 Jul 2022 12:01:12 +0200 Subject: [PATCH] Continued: - renamed 'main' to 'daemon' for invocation of "php index.php app=hub" --- application/hub/class_ApplicationHelper.php | 2 +- ...d.php => class_HubConsoleDaemonCommand.php} | 8 ++++---- .../html/class_HubHtmlIndexCommand.php | 2 +- application/hub/config.php | 18 +++++++++--------- 4 files changed, 15 insertions(+), 15 deletions(-) rename application/hub/classes/commands/console/{class_HubConsoleMainCommand.php => class_HubConsoleDaemonCommand.php} (96%) diff --git a/application/hub/class_ApplicationHelper.php b/application/hub/class_ApplicationHelper.php index 2202b4c47..8680157e4 100644 --- a/application/hub/class_ApplicationHelper.php +++ b/application/hub/class_ApplicationHelper.php @@ -206,6 +206,6 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication * @return $masterTemplateName Name of the master template */ public function buildMasterTemplateName () { - return 'node_main'; + return 'node_daemon'; } } diff --git a/application/hub/classes/commands/console/class_HubConsoleMainCommand.php b/application/hub/classes/commands/console/class_HubConsoleDaemonCommand.php similarity index 96% rename from application/hub/classes/commands/console/class_HubConsoleMainCommand.php rename to application/hub/classes/commands/console/class_HubConsoleDaemonCommand.php index 996cd0b45..4826c63aa 100644 --- a/application/hub/classes/commands/console/class_HubConsoleMainCommand.php +++ b/application/hub/classes/commands/console/class_HubConsoleDaemonCommand.php @@ -17,7 +17,7 @@ use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver; use Org\Mxchange\CoreFramework\Response\Responseable; /** - * A command for the 'main' routine + * A command for the 'daemon' routine * * @author Roland Haeder * @version 0.0.0 @@ -38,7 +38,7 @@ use Org\Mxchange\CoreFramework\Response\Responseable; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class HubConsoleMainCommand extends BaseCommand implements Commandable { +class HubConsoleDaemonCommand extends BaseCommand implements Commandable { /** * Protected constructor * @@ -55,9 +55,9 @@ class HubConsoleMainCommand extends BaseCommand implements Commandable { * @param $resolverInstance An instance of a command resolver class * @return $commandInstance An instance a prepared command class */ - public static final function createHubConsoleMainCommand (CommandResolver $resolverInstance) { + public static final function createHubConsoleDaemonCommand (CommandResolver $resolverInstance) { // Get new instance - $commandInstance = new HubConsoleMainCommand(); + $commandInstance = new HubConsoleDaemonCommand(); // Set the application instance $commandInstance->setResolverInstance($resolverInstance); diff --git a/application/hub/classes/commands/html/class_HubHtmlIndexCommand.php b/application/hub/classes/commands/html/class_HubHtmlIndexCommand.php index 418e4beee..3066057ab 100644 --- a/application/hub/classes/commands/html/class_HubHtmlIndexCommand.php +++ b/application/hub/classes/commands/html/class_HubHtmlIndexCommand.php @@ -12,7 +12,7 @@ use Org\Mxchange\CoreFramework\Resolver\Command\CommandResolver; use Org\Mxchange\CoreFramework\Response\Responseable; /** - * A command for the 'main' routine + * A command for the index routine * * @author Roland Haeder * @version 0.0.0 diff --git a/application/hub/config.php b/application/hub/config.php index 920c57c57..b5fb14205 100644 --- a/application/hub/config.php +++ b/application/hub/config.php @@ -157,10 +157,10 @@ $cfg->setConfigEntry('dht_bootstrap_helper_class', 'Org\Shipsimu\Hub\Helper\Dht\ $cfg->setConfigEntry('dht_publish_entry_helper_class', 'Org\Shipsimu\Hub\Helper\Dht\Publish\DhtPublishEntryHelper'); // CFG: DEFAULT-CONSOLE-COMMAND -$cfg->setConfigEntry('default_console_command', 'main'); +$cfg->setConfigEntry('default_console_command', 'daemon'); // CFG: DEFAULT-HUB-CONSOLE-COMMAND -$cfg->setConfigEntry('default_hub_console_command', 'main'); +$cfg->setConfigEntry('default_hub_console_command', 'daemon'); // CFG: HUB-CONSOLE-CONTROLLER_RESOLVER-CLASS $cfg->setConfigEntry('hub_console_controller_resolver_class', 'Org\Shipsimu\Hub\Resolver\Controller\HubConsoleControllerResolver'); @@ -168,8 +168,8 @@ $cfg->setConfigEntry('hub_console_controller_resolver_class', 'Org\Shipsimu\Hub\ // CFG: HUB-HTML-CONTROLLER_RESOLVER-CLASS $cfg->setConfigEntry('hub_html_controller_resolver_class', 'Org\Shipsimu\Hub\Resolver\Controller\HubHtmlControllerResolver'); -// CFG: HUB-CONSOLE-CMD-MAIN-RESOLVER-CLASS -$cfg->setConfigEntry('hub_console_cmd_main_resolver_class', 'Org\Shipsimu\Hub\Resolver\Command\HubConsoleCommandResolver'); +// CFG: HUB-CONSOLE-CMD-DAEMON-RESOLVER-CLASS +$cfg->setConfigEntry('hub_console_cmd_daemon_resolver_class', 'Org\Shipsimu\Hub\Resolver\Command\HubConsoleCommandResolver'); // CFG: NEWS-DOWNLOAD-FILTER-CLASS $cfg->setConfigEntry('news_download_filter_class', 'Org\Mxchange\CoreFramework\Filter\News\NewsDownloadFilter'); @@ -273,8 +273,8 @@ $cfg->setConfigEntry('node_answer_message_dht_bootstrap_helper_class', 'Org\Ship // CFG: NODE-NEXT-ANNOUNCEMENT-ANSWER-OKAY-HELPER-CLASS $cfg->setConfigEntry('node_next_announcement_answer_okay_helper_class', 'Org\Shipsimu\Hub\Node\Helper\Request\NodeList\NodeRequestNodeListHelper'); -// CFG: NEWS-READER-MAIN-CLASS -$cfg->setConfigEntry('news_reader_main_class', 'Org\Mxchange\CoreFramework\Reader\News\Console\ConsoleNewsReader'); +// CFG: NEWS-READER-DAEMON-CLASS +$cfg->setConfigEntry('news_reader_daemon_class', 'Org\Mxchange\CoreFramework\Reader\News\Console\ConsoleNewsReader'); // CFG: NODE-ANNOUNCEMENT-TEMPLATE-CLASS $cfg->setConfigEntry('node_announcement_template_class', 'Org\Shipsimu\Hub\Template\Engine\Xml\Announcement\XmlAnnouncementTemplateEngine'); @@ -507,8 +507,8 @@ $cfg->setConfigEntry('stacker_message_new_max_size', 10); // CFG: STACKER-MESSAGE-PROCESSED-MAX_SIZE $cfg->setConfigEntry('stacker_message_processed_max_size', 10); -// CFG: NEWS-MAIN-LIMIT -$cfg->setConfigEntry('news_main_limit', 5); +// CFG: NEWS-DAEMON-LIMIT +$cfg->setConfigEntry('news_daemon_limit', 5); // CFG: TASK-PACKAGE-TAGS-INIT-STARTUP-DELAY $cfg->setConfigEntry('task_package_tags_init_startup_delay', 50); @@ -861,7 +861,7 @@ $cfg->setConfigEntry('max_dht_recipients', 10); $cfg->setConfigEntry('connection_info_class', 'Org\Shipsimu\Hub\Information\Connection\ConnectionInfo'); // CFG: DEFAULT-HUB-CONSOLE-CONTROLLER -$cfg->setConfigEntry('default_hub_console_controller', 'main'); +$cfg->setConfigEntry('default_hub_console_controller', 'daemon'); /////////////////////////////////////////////////////////////////////////////// // Node states -- 2.39.5