if (empty($commandName)) {
// Then thrown an exception here
throw new EmptyVariableException(array($this, 'commandName'), self::EXCEPTION_UNEXPECTED_EMPTY_STRING);
- }
+ } // END - if
+
+ // Create the full class name
+ $className = $this->commandPrefix . $this->convertToClassName($commandName) . 'Command';
// Now, let us create the full name of the command class
- $this->setClassName(sprintf("%s%sCommand",
- $this->commandPrefix,
- $this->convertToClassName($commandName)
- ));
+ $this->setClassName($className);
// Is this class already loaded?
if (class_exists($this->getClassName())) {