parent::__construct(__CLASS__);
// Set prefix to "Web"
- $this->setCommandPrefix("Web");
+ $this->setCommandPrefix('Web');
}
/**
* @throws EmptyVariableException Thrown if default command is not set
* @throws InvalidInterfaceException Thrown if command does not implement interface Commandable
*/
- public final static function createWebGovernmentFailedCommandResolver ($commandName, ManageableApplication $appInstance) {
+ public static final function createWebGovernmentFailedCommandResolver ($commandName, ManageableApplication $appInstance) {
// Create the new instance
$resolverInstance = new WebGovernmentFailedCommandResolver();
} // END - if
// 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) {
*/
private function loadCommand ($commandName) {
// Cache default command
- $defaultCommand = $this->getConfigInstance()->readConfig('default_web_command');
+ $defaultCommand = $this->getConfigInstance()->getConfigEntry('default_web_command');
// Init command instance
$commandInstance = null;
// Create command class name
- $this->setClassName(sprintf("Web%sCommand",
+ $this->setClassName(sprintf("%s%sCommand",
+ $this->getCommandPrefix(),
$this->convertToClassName($commandName)
));