No longer web commands in console controllers...
authorRoland Häder <roland@mxchange.org>
Sat, 18 Jul 2009 05:35:57 +0000 (05:35 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 18 Jul 2009 05:35:57 +0000 (05:35 +0000)
inc/classes/main/resolver/controller/console/class_ConsoleControllerResolver.php

index 94e1445bc30043d02cae60f0440a606b1bf1b088..31dd4681541c38dd450373994133a54cedb9811c 100644 (file)
@@ -121,7 +121,7 @@ class ConsoleControllerResolver extends BaseControllerResolver implements Contro
         */
        private function loadController ($controllerName) {
                // Cache default command
         */
        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;
 
                // 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
                // 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?
 
                        // 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
                }
 
                // Initiate the resolver and controller