From 253b7896740f6146fe92f2caa85c52438c209ae7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 31 Jul 2009 19:29:42 +0000 Subject: [PATCH] Prefixes used from attribute --- .../resolver/command/console/class_ConsoleCommandResolver.php | 4 ++-- .../resolver/command/image/class_ImageCommandResolver.php | 4 ++-- .../main/resolver/command/web/class_WebCommandResolver.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/inc/classes/main/resolver/command/console/class_ConsoleCommandResolver.php b/inc/classes/main/resolver/command/console/class_ConsoleCommandResolver.php index 5eccb000..44f80b33 100644 --- a/inc/classes/main/resolver/command/console/class_ConsoleCommandResolver.php +++ b/inc/classes/main/resolver/command/console/class_ConsoleCommandResolver.php @@ -37,7 +37,7 @@ class ConsoleCommandResolver extends BaseCommandResolver implements CommandResol parent::__construct(__CLASS__); // Set prefix to "Console" - $this->setCommandPrefix("Console"); + $this->setCommandPrefix('Console'); } /** @@ -153,7 +153,7 @@ class ConsoleCommandResolver extends BaseCommandResolver implements CommandResol $commandInstance = null; // Create class name - $className = 'Console' . $this->convertToClassName($commandName) . 'Command'; + $className = $this->getCommandPrefix() . $this->convertToClassName($commandName) . 'Command'; // Create command class name $this->setClassName($className); diff --git a/inc/classes/main/resolver/command/image/class_ImageCommandResolver.php b/inc/classes/main/resolver/command/image/class_ImageCommandResolver.php index 71c7a1b4..fa23fda1 100644 --- a/inc/classes/main/resolver/command/image/class_ImageCommandResolver.php +++ b/inc/classes/main/resolver/command/image/class_ImageCommandResolver.php @@ -37,7 +37,7 @@ class ImageCommandResolver extends BaseCommandResolver implements CommandResolve parent::__construct(__CLASS__); // Set prefix to "Image" - $this->setCommandPrefix("Image"); + $this->setCommandPrefix('Image'); } /** @@ -153,7 +153,7 @@ class ImageCommandResolver extends BaseCommandResolver implements CommandResolve $commandInstance = null; // Create class name - $className = 'Image' . $this->convertToClassName($commandName) . 'Command'; + $className = $this->getCommandPrefix() . $this->convertToClassName($commandName) . 'Command'; // Is this class loaded? if (!class_exists($this->getClassName())) { diff --git a/inc/classes/main/resolver/command/web/class_WebCommandResolver.php b/inc/classes/main/resolver/command/web/class_WebCommandResolver.php index da0c35a6..0e5e65de 100644 --- a/inc/classes/main/resolver/command/web/class_WebCommandResolver.php +++ b/inc/classes/main/resolver/command/web/class_WebCommandResolver.php @@ -37,7 +37,7 @@ class WebCommandResolver extends BaseCommandResolver implements CommandResolver parent::__construct(__CLASS__); // Set prefix to "Web" - $this->setCommandPrefix("Web"); + $this->setCommandPrefix('Web'); } /** @@ -153,7 +153,7 @@ class WebCommandResolver extends BaseCommandResolver implements CommandResolver $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); -- 2.39.5