From: Roland Häder Date: Sat, 18 Jul 2009 05:35:57 +0000 (+0000) Subject: No longer web commands in console controllers... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7b193ca2fce72b7c71327d8c913c70b8c207dda7;p=core.git No longer web commands in console controllers... --- diff --git a/inc/classes/main/resolver/controller/console/class_ConsoleControllerResolver.php b/inc/classes/main/resolver/controller/console/class_ConsoleControllerResolver.php index 94e1445b..31dd4681 100644 --- a/inc/classes/main/resolver/controller/console/class_ConsoleControllerResolver.php +++ b/inc/classes/main/resolver/controller/console/class_ConsoleControllerResolver.php @@ -121,7 +121,7 @@ class ConsoleControllerResolver extends BaseControllerResolver implements Contro */ private function loadController ($controllerName) { // Cache default command - $defaultController = $this->getConfigInstance()->readConfig('default_web_command'); + $defaultController = $this->getConfigInstance()->readConfig('default_console_command'); // Init controller instance $controllerInstance = null; @@ -158,14 +158,14 @@ class ConsoleControllerResolver extends BaseControllerResolver implements Contro // Try to read a config entry for our resolver including controller name... ;-) try { // Create the resolver name - $resolverConfigEntry = sprintf("web_cmd_%s_resolver_class", strtolower($controllerName)); + $resolverConfigEntry = sprintf("console_cmd_%s_resolver_class", strtolower($controllerName)); // Get the config, this will throw an exception if there is no special command resolver $resolverClass = $this->getConfigInstance()->readConfig($resolverConfigEntry); } catch (ConfigEntryNotFoundException $e) { // Use default resolver entry // @TODO Maybe we need to log this? - $resolverConfigEntry = 'web_cmd_resolver_class'; + $resolverConfigEntry = 'console_cmd_resolver_class'; } // Initiate the resolver and controller