if ($this->isCommandValid($commandName) === false) {
// This command is invalid!
throw new InvalidCommandException(array($this, $commandName), self::EXCEPTION_INVALID_COMMAND);
- }
+ } // END - if
// Get the command
$commandInstance = $this->loadCommand($commandName);
// Init command instance
$commandInstance = null;
- // Create class name
- $className = $this->getCommandPrefix() . $this->convertToClassName($commandName) . 'Command';
-
- // Create command class name
- $this->setClassName($className);
-
// Is this class loaded?
if (!class_exists($this->getClassName())) {
// Class not found, so throw an exception