Prefixes used from attribute
authorRoland Häder <roland@mxchange.org>
Fri, 31 Jul 2009 19:29:42 +0000 (19:29 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 31 Jul 2009 19:29:42 +0000 (19:29 +0000)
inc/classes/main/resolver/command/console/class_ConsoleCommandResolver.php
inc/classes/main/resolver/command/image/class_ImageCommandResolver.php
inc/classes/main/resolver/command/web/class_WebCommandResolver.php

index 5eccb00..44f80b3 100644 (file)
@@ -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);
index 71c7a1b..fa23fda 100644 (file)
@@ -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())) {
index da0c35a..0e5e65d 100644 (file)
@@ -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);