From 7b193ca2fce72b7c71327d8c913c70b8c207dda7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 18 Jul 2009 05:35:57 +0000 Subject: [PATCH] No longer web commands in console controllers... --- .../controller/console/class_ConsoleControllerResolver.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5