From: Roland Häder Date: Thu, 18 May 2017 21:29:20 +0000 (+0200) Subject: Next wave: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=069a655032770e2dc8049e0f3bc07996cef3e816;p=hub.git Next wave: - imported (Base)ControllerResolver - imported ManageableApplication - created new namespaces - fixed namespaces, is application-specific Signed-off-by: Roland Häder --- diff --git a/application/hub/class_ApplicationHelper.php b/application/hub/class_ApplicationHelper.php index 1ef110253..56c008135 100644 --- a/application/hub/class_ApplicationHelper.php +++ b/application/hub/class_ApplicationHelper.php @@ -230,7 +230,7 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica // Get a controller resolver $resolverClass = sprintf( - 'CoreFramework\Tests\Resolver\Controller\%s', + 'Hub\Resolver\Controller\%s', self::convertToClassName(sprintf( '%s_%s_controller_resolver', $this->getAppShortName(), diff --git a/application/hub/classes/resolver/command/console/class_HubConsoleCommandResolver.php b/application/hub/classes/resolver/command/console/class_HubConsoleCommandResolver.php index 2343d40c4..5a4baacd4 100644 --- a/application/hub/classes/resolver/command/console/class_HubConsoleCommandResolver.php +++ b/application/hub/classes/resolver/command/console/class_HubConsoleCommandResolver.php @@ -1,4 +1,10 @@ isControllerValid($controllerName) === FALSE) { + } elseif ($resolverInstance->isControllerValid('Hub\Controller', $controllerName) === false) { // Invalid command found throw new InvalidControllerException(array($resolverInstance, $controllerName), self::EXCEPTION_INVALID_CONTROLLER); } diff --git a/application/hub/classes/resolver/controller/html/class_HubHtmlControllerResolver.php b/application/hub/classes/resolver/controller/html/class_HubHtmlControllerResolver.php index 1376a827e..cc54da23a 100644 --- a/application/hub/classes/resolver/controller/html/class_HubHtmlControllerResolver.php +++ b/application/hub/classes/resolver/controller/html/class_HubHtmlControllerResolver.php @@ -1,4 +1,12 @@ isControllerValid($controllerName) === FALSE) { + } elseif ($resolverInstance->isControllerValid('Hub\Controller', $controllerName) === false) { // Invalid command found throw new InvalidControllerException(array($resolverInstance, $controllerName), self::EXCEPTION_INVALID_CONTROLLER); }