Unneccessary code removed
authorRoland Häder <roland@mxchange.org>
Sat, 18 Jul 2009 08:12:45 +0000 (08:12 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 18 Jul 2009 08:12:45 +0000 (08:12 +0000)
inc/classes/main/resolver/command/console/class_ConsoleCommandResolver.php
inc/classes/main/resolver/command/image/class_ImageCommandResolver.php
inc/classes/main/resolver/command/web/class_WebCommandResolver.php

index 5dffd57..b3903d6 100644 (file)
@@ -149,9 +149,6 @@ class ConsoleCommandResolver extends BaseCommandResolver implements CommandResol
         *                                                                              command class is missing (bad!)
         */
        private function loadCommand ($commandName) {
-               // Cache default command
-               $defaultCommand = $this->getConfigInstance()->readConfig('default_console_command');
-
                // Init command instance
                $commandInstance = null;
 
@@ -164,7 +161,7 @@ class ConsoleCommandResolver extends BaseCommandResolver implements CommandResol
                // Is this class loaded?
                if (!class_exists($this->getClassName())) {
                        // Class not found, so throw an exception
-                       throw new InvalidCommandException(array($this, $defaultCommand), self::EXCEPTION_INVALID_COMMAND);
+                       throw new InvalidCommandException(array($this, $commandName), self::EXCEPTION_INVALID_COMMAND);
                } // END - if
 
                // Initiate the command
index 633a623..9dca5ec 100644 (file)
@@ -149,9 +149,6 @@ class ImageCommandResolver extends BaseCommandResolver implements CommandResolve
         *                                                                              command class is missing (bad!)
         */
        private function loadCommand ($commandName) {
-               // Cache default command
-               $defaultCommand = $this->getConfigInstance()->readConfig('default_image_command');
-
                // Init command instance
                $commandInstance = null;
 
@@ -161,7 +158,7 @@ class ImageCommandResolver extends BaseCommandResolver implements CommandResolve
                // Is this class loaded?
                if (!class_exists($this->getClassName())) {
                        // Class not found, so throw an exception
-                       throw new InvalidCommandException(array($this, $defaultCommand), self::EXCEPTION_INVALID_COMMAND);
+                       throw new InvalidCommandException(array($this, $commandName), self::EXCEPTION_INVALID_COMMAND);
                } // END - if
 
                // Initiate the command
index f4eba12..cb23dd1 100644 (file)
@@ -149,9 +149,6 @@ class WebCommandResolver extends BaseCommandResolver implements CommandResolver
         *                                                                              command class is missing (bad!)
         */
        private function loadCommand ($commandName) {
-               // Cache default command
-               $defaultCommand = $this->getConfigInstance()->readConfig('default_web_command');
-
                // Init command instance
                $commandInstance = null;
 
@@ -164,7 +161,7 @@ class WebCommandResolver extends BaseCommandResolver implements CommandResolver
                // Is this class loaded?
                if (!class_exists($this->getClassName())) {
                        // Class not found, so throw an exception
-                       throw new InvalidCommandException(array($this, $defaultCommand), self::EXCEPTION_INVALID_COMMAND);
+                       throw new InvalidCommandException(array($this, $commandName), self::EXCEPTION_INVALID_COMMAND);
                } // END - if
 
                // Initiate the command