From 96adea083b5b6c86fbcb349c825c2aeaf76380f6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 19 May 2017 01:28:57 +0200 Subject: [PATCH] Same again: - no "deeper-namespacing" - need to provide namespace 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 | 2 +- .../classes/commands/console/class_HubConsoleChatCommand.php | 2 +- .../commands/console/class_HubConsoleCrawlerCommand.php | 2 +- .../commands/console/class_HubConsoleCruncherCommand.php | 2 +- .../classes/commands/console/class_HubConsoleMainCommand.php | 2 +- .../classes/commands/console/class_HubConsoleMinerCommand.php | 2 +- .../hub/classes/commands/html/class_HubHtmlIndexCommand.php | 2 +- .../command/console/class_HubConsoleCommandResolver.php | 4 +++- .../resolver/command/html/class_HubHtmlCommandResolver.php | 4 +++- 9 files changed, 13 insertions(+), 9 deletions(-) diff --git a/application/hub/classes/commands/console/class_HubConsoleAptProxyCommand.php b/application/hub/classes/commands/console/class_HubConsoleAptProxyCommand.php index 6e6087533..a63caf6a6 100644 --- a/application/hub/classes/commands/console/class_HubConsoleAptProxyCommand.php +++ b/application/hub/classes/commands/console/class_HubConsoleAptProxyCommand.php @@ -1,6 +1,6 @@ isCommandValid($commandName) === FALSE) { + } elseif ($resolverInstance->isCommandValid('Hub\Command', $commandName) === FALSE) { // Invalid command found throw new InvalidCommandException(array($resolverInstance, $commandName), self::EXCEPTION_INVALID_COMMAND); } diff --git a/application/hub/classes/resolver/command/html/class_HubHtmlCommandResolver.php b/application/hub/classes/resolver/command/html/class_HubHtmlCommandResolver.php index cb8f662a0..cc8819009 100644 --- a/application/hub/classes/resolver/command/html/class_HubHtmlCommandResolver.php +++ b/application/hub/classes/resolver/command/html/class_HubHtmlCommandResolver.php @@ -4,6 +4,8 @@ namespace Hub\Resolver\Command; // Import Framework stuff use CoreFramework\Manager\ManageableApplication; +use CoreFramework\Resolver\Command\BaseCommandResolver; +use CoreFramework\Resolver\Command\CommandResolver; /** * A command resolver for HTML commands @@ -58,7 +60,7 @@ class HubHtmlCommandResolver extends BaseCommandResolver implements CommandResol if (empty($commandName)) { // Then thrown an exception here throw new EmptyVariableException(array($resolverInstance, 'commandName'), self::EXCEPTION_UNEXPECTED_EMPTY_STRING); - } elseif ($resolverInstance->isCommandValid($commandName) === FALSE) { + } elseif ($resolverInstance->isCommandValid('Hub\Command', $commandName) === FALSE) { // Invalid command found throw new InvalidCommandException(array($resolverInstance, $commandName), self::EXCEPTION_INVALID_COMMAND); } -- 2.39.5