parent::__construct(__CLASS__);
// Set prefix to "Web"
- $this->setCommandPrefix("Web");
+ $this->setCommandPrefix('Web');
}
/**
$commandName = $requestInstance->getRequestElement('page');
// Is the command empty? Then fall back to default command
- if (empty($commandName)) $commandName = $this->getConfigInstance()->readConfig('default_web_command');
+ if (empty($commandName)) $commandName = $this->getConfigInstance()->getConfigEntry('default_web_command');
// Check if command is valid
if ($this->isCommandValid($commandName) === false) {
$commandInstance = null;
// Is the command empty? Then fall back to default command
- if (empty($commandName)) $commandName = $this->getConfigInstance()->readConfig('default_web_command');
+ if (empty($commandName)) $commandName = $this->getConfigInstance()->getConfigEntry('default_web_command');
// Check if command is valid
if ($this->isCommandValid($commandName) === false) {
$commandInstance = null;
// Create class name
- $className = 'Web' . $this->convertToClassName($commandName) . 'Command';
+ $className = $this->getCommandPrefix() . $this->convertToClassName($commandName) . 'Command';
// Create command class name
$this->setClassName($className);