]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/resolver/command/console/class_ConsoleCommandResolver.php
Unneccessary code removed
[core.git] / inc / classes / main / resolver / command / console / class_ConsoleCommandResolver.php
index 5dffd57696fbc9374ef9b212f93c0ebc1b5771f5..b3903d6a228c5f9c693e0124b84b26b18d1e2a74 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