From 9302cdf4df72955048a51355f956a0cd8cf79b38 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 19 May 2017 01:30:19 +0200 Subject: [PATCH] Next wave: - imported BaseCommand + Commandable - imported Controller - imported CommandResolver - missing namespace added MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../commands/console/class_HubConsoleAptProxyCommand.php | 4 ++++ .../classes/commands/console/class_HubConsoleChatCommand.php | 4 ++++ .../commands/console/class_HubConsoleCrawlerCommand.php | 4 ++++ .../commands/console/class_HubConsoleCruncherCommand.php | 4 ++++ .../classes/commands/console/class_HubConsoleMainCommand.php | 4 ++++ .../classes/commands/console/class_HubConsoleMinerCommand.php | 4 ++++ .../hub/classes/commands/html/class_HubHtmlIndexCommand.php | 4 ++++ .../controller/console/class_HubConsoleAptProxyController.php | 1 + .../controller/console/class_HubConsoleChatController.php | 1 + .../controller/console/class_HubConsoleCrawlerController.php | 1 + .../controller/console/class_HubConsoleCruncherController.php | 2 ++ .../console/class_HubConsoleDefaultNewsController.php | 1 + .../controller/console/class_HubConsoleFuseController.php | 1 + .../controller/console/class_HubConsoleMinerController.php | 1 + application/hub/config.php | 4 ++-- 15 files changed, 38 insertions(+), 2 deletions(-) diff --git a/application/hub/classes/commands/console/class_HubConsoleAptProxyCommand.php b/application/hub/classes/commands/console/class_HubConsoleAptProxyCommand.php index a63caf6a6..839a82b66 100644 --- a/application/hub/classes/commands/console/class_HubConsoleAptProxyCommand.php +++ b/application/hub/classes/commands/console/class_HubConsoleAptProxyCommand.php @@ -3,7 +3,11 @@ namespace Hub\Command; // Import framework stuff +use CoreFramework\Command\BaseCommand; +use CoreFramework\Command\Commandable; +use CoreFramework\Controller\Controller; use CoreFramework\Request\Requestable; +use CoreFramework\Resolver\Command\CommandResolver; use CoreFramework\Response\Responseable; /** diff --git a/application/hub/classes/commands/console/class_HubConsoleChatCommand.php b/application/hub/classes/commands/console/class_HubConsoleChatCommand.php index 844e36f82..43e94f098 100644 --- a/application/hub/classes/commands/console/class_HubConsoleChatCommand.php +++ b/application/hub/classes/commands/console/class_HubConsoleChatCommand.php @@ -3,7 +3,11 @@ namespace Hub\Command; // Import framework stuff +use CoreFramework\Command\BaseCommand; +use CoreFramework\Command\Commandable; +use CoreFramework\Controller\Controller; use CoreFramework\Request\Requestable; +use CoreFramework\Resolver\Command\CommandResolver; use CoreFramework\Response\Responseable; /** diff --git a/application/hub/classes/commands/console/class_HubConsoleCrawlerCommand.php b/application/hub/classes/commands/console/class_HubConsoleCrawlerCommand.php index 9b22759dd..4bafac6d0 100644 --- a/application/hub/classes/commands/console/class_HubConsoleCrawlerCommand.php +++ b/application/hub/classes/commands/console/class_HubConsoleCrawlerCommand.php @@ -3,7 +3,11 @@ namespace Hub\Command; // Import framework stuff +use CoreFramework\Command\BaseCommand; +use CoreFramework\Command\Commandable; +use CoreFramework\Controller\Controller; use CoreFramework\Request\Requestable; +use CoreFramework\Resolver\Command\CommandResolver; use CoreFramework\Response\Responseable; /** diff --git a/application/hub/classes/commands/console/class_HubConsoleCruncherCommand.php b/application/hub/classes/commands/console/class_HubConsoleCruncherCommand.php index 94db0cac4..b8da2bc15 100644 --- a/application/hub/classes/commands/console/class_HubConsoleCruncherCommand.php +++ b/application/hub/classes/commands/console/class_HubConsoleCruncherCommand.php @@ -3,7 +3,11 @@ namespace Hub\Command; // Import framework stuff +use CoreFramework\Command\BaseCommand; +use CoreFramework\Command\Commandable; +use CoreFramework\Controller\Controller; use CoreFramework\Request\Requestable; +use CoreFramework\Resolver\Command\CommandResolver; use CoreFramework\Response\Responseable; /** diff --git a/application/hub/classes/commands/console/class_HubConsoleMainCommand.php b/application/hub/classes/commands/console/class_HubConsoleMainCommand.php index 3c20b5fd9..ccebfc281 100644 --- a/application/hub/classes/commands/console/class_HubConsoleMainCommand.php +++ b/application/hub/classes/commands/console/class_HubConsoleMainCommand.php @@ -3,7 +3,11 @@ namespace Hub\Command; // Import framework stuff +use CoreFramework\Command\BaseCommand; +use CoreFramework\Command\Commandable; +use CoreFramework\Controller\Controller; use CoreFramework\Request\Requestable; +use CoreFramework\Resolver\Command\CommandResolver; use CoreFramework\Response\Responseable; /** diff --git a/application/hub/classes/commands/console/class_HubConsoleMinerCommand.php b/application/hub/classes/commands/console/class_HubConsoleMinerCommand.php index e02fd9947..9e0d72f4a 100644 --- a/application/hub/classes/commands/console/class_HubConsoleMinerCommand.php +++ b/application/hub/classes/commands/console/class_HubConsoleMinerCommand.php @@ -3,7 +3,11 @@ namespace Hub\Command; // Import framework stuff +use CoreFramework\Command\BaseCommand; +use CoreFramework\Command\Commandable; +use CoreFramework\Controller\Controller; use CoreFramework\Request\Requestable; +use CoreFramework\Resolver\Command\CommandResolver; use CoreFramework\Response\Responseable; /** diff --git a/application/hub/classes/commands/html/class_HubHtmlIndexCommand.php b/application/hub/classes/commands/html/class_HubHtmlIndexCommand.php index c58fe04d5..82efd47fb 100644 --- a/application/hub/classes/commands/html/class_HubHtmlIndexCommand.php +++ b/application/hub/classes/commands/html/class_HubHtmlIndexCommand.php @@ -3,7 +3,11 @@ namespace Hub\Command; // Import framework stuff +use CoreFramework\Command\BaseCommand; +use CoreFramework\Command\Commandable; +use CoreFramework\Controller\Controller; use CoreFramework\Request\Requestable; +use CoreFramework\Resolver\Command\CommandResolver; use CoreFramework\Response\Responseable; /** diff --git a/application/hub/classes/controller/console/class_HubConsoleAptProxyController.php b/application/hub/classes/controller/console/class_HubConsoleAptProxyController.php index 00a0496e6..a25ec79e1 100644 --- a/application/hub/classes/controller/console/class_HubConsoleAptProxyController.php +++ b/application/hub/classes/controller/console/class_HubConsoleAptProxyController.php @@ -6,6 +6,7 @@ namespace Hub\Controller; use CoreFramework\Controller\BaseController; use CoreFramework\Controller\Controller; use CoreFramework\Request\Requestable; +use CoreFramework\Resolver\Command\CommandResolver; use CoreFramework\Response\Responseable; /** diff --git a/application/hub/classes/controller/console/class_HubConsoleChatController.php b/application/hub/classes/controller/console/class_HubConsoleChatController.php index 54e012b6f..dca540602 100644 --- a/application/hub/classes/controller/console/class_HubConsoleChatController.php +++ b/application/hub/classes/controller/console/class_HubConsoleChatController.php @@ -6,6 +6,7 @@ namespace Hub\Controller; use CoreFramework\Controller\BaseController; use CoreFramework\Controller\Controller; use CoreFramework\Request\Requestable; +use CoreFramework\Resolver\Command\CommandResolver; use CoreFramework\Response\Responseable; /** diff --git a/application/hub/classes/controller/console/class_HubConsoleCrawlerController.php b/application/hub/classes/controller/console/class_HubConsoleCrawlerController.php index f62ab9fd6..a70cd9e99 100644 --- a/application/hub/classes/controller/console/class_HubConsoleCrawlerController.php +++ b/application/hub/classes/controller/console/class_HubConsoleCrawlerController.php @@ -6,6 +6,7 @@ namespace Hub\Controller; use CoreFramework\Controller\BaseController; use CoreFramework\Controller\Controller; use CoreFramework\Request\Requestable; +use CoreFramework\Resolver\Command\CommandResolver; use CoreFramework\Response\Responseable; /** diff --git a/application/hub/classes/controller/console/class_HubConsoleCruncherController.php b/application/hub/classes/controller/console/class_HubConsoleCruncherController.php index 389f31354..77f423500 100644 --- a/application/hub/classes/controller/console/class_HubConsoleCruncherController.php +++ b/application/hub/classes/controller/console/class_HubConsoleCruncherController.php @@ -6,6 +6,8 @@ namespace Hub\Controller; use CoreFramework\Controller\BaseController; use CoreFramework\Controller\Controller; use CoreFramework\Request\Requestable; +use CoreFramework\Resolver\Command\CommandResolver; +use CoreFramework\Response\Responseable; /** * A console controller for the cruncher, which is our very first hub diff --git a/application/hub/classes/controller/console/class_HubConsoleDefaultNewsController.php b/application/hub/classes/controller/console/class_HubConsoleDefaultNewsController.php index 2bf95e1eb..32c98b6c8 100644 --- a/application/hub/classes/controller/console/class_HubConsoleDefaultNewsController.php +++ b/application/hub/classes/controller/console/class_HubConsoleDefaultNewsController.php @@ -6,6 +6,7 @@ namespace Hub\Controller; use CoreFramework\Controller\BaseController; use CoreFramework\Controller\Controller; use CoreFramework\Request\Requestable; +use CoreFramework\Resolver\Command\CommandResolver; use CoreFramework\Response\Responseable; /** diff --git a/application/hub/classes/controller/console/class_HubConsoleFuseController.php b/application/hub/classes/controller/console/class_HubConsoleFuseController.php index b2c2ec5c2..f7051142d 100644 --- a/application/hub/classes/controller/console/class_HubConsoleFuseController.php +++ b/application/hub/classes/controller/console/class_HubConsoleFuseController.php @@ -6,6 +6,7 @@ namespace Hub\Controller; use CoreFramework\Controller\BaseController; use CoreFramework\Controller\Controller; use CoreFramework\Request\Requestable; +use CoreFramework\Resolver\Command\CommandResolver; use CoreFramework\Response\Responseable; /** diff --git a/application/hub/classes/controller/console/class_HubConsoleMinerController.php b/application/hub/classes/controller/console/class_HubConsoleMinerController.php index a16c3da8d..c28252466 100644 --- a/application/hub/classes/controller/console/class_HubConsoleMinerController.php +++ b/application/hub/classes/controller/console/class_HubConsoleMinerController.php @@ -6,6 +6,7 @@ namespace Hub\Controller; use CoreFramework\Controller\BaseController; use CoreFramework\Controller\Controller; use CoreFramework\Request\Requestable; +use CoreFramework\Resolver\Command\CommandResolver; use CoreFramework\Response\Responseable; /** diff --git a/application/hub/config.php b/application/hub/config.php index 6e871ab66..97caf06a3 100644 --- a/application/hub/config.php +++ b/application/hub/config.php @@ -1556,7 +1556,7 @@ $cfg->setConfigEntry('default_hub_html_command', 'index'); $cfg->setConfigEntry('default_html_controller', 'index'); // CFG: HTML-CMD-INDEX-RESOLVER-CLASS -$cfg->setConfigEntry('html_cmd_index_resolver_class', 'HubHtmlCommandResolver'); +$cfg->setConfigEntry('html_cmd_index_resolver_class', 'Hub\Resolver\Command\HubHtmlCommandResolver'); // CFG: NEWS-READER-INDEX-CLASS $cfg->setConfigEntry('news_reader_index_class', 'DefaultNewsReader'); @@ -1584,7 +1584,7 @@ $cfg->setConfigEntry('form_target', '_self'); /////////////////////////////////////////////////////////////////////////////// // CFG: HUB-CONSOLE-CMD-FUSE-RESOLVER-CLASS -$cfg->setConfigEntry('hub_console_cmd_fuse_resolver_class', 'ConsoleCommandResolver'); +$cfg->setConfigEntry('hub_console_cmd_fuse_resolver_class', 'CoreFramework\Resolver\Command\ConsoleCommandResolver'); // CFG: ENABLE-FEATURE-FUSE $cfg->setConfigEntry('enable_feature_fuse', 'N'); -- 2.39.5