* command class is missing (bad!)
*/
private function loadCommand ($commandName) {
- // Cache default command
- $defaultCommand = $this->getConfigInstance()->readConfig('default_console_command');
-
// Init command instance
$commandInstance = null;
// 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
* command class is missing (bad!)
*/
private function loadCommand ($commandName) {
- // Cache default command
- $defaultCommand = $this->getConfigInstance()->readConfig('default_image_command');
-
// Init command instance
$commandInstance = null;
// 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
* command class is missing (bad!)
*/
private function loadCommand ($commandName) {
- // Cache default command
- $defaultCommand = $this->getConfigInstance()->readConfig('default_web_command');
-
// Init command instance
$commandInstance = null;
// 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