]> git.mxchange.org Git - core.git/commitdiff
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 5eccb000fe62e895024aed27509ebcfbef2c311f..44f80b336e0cfce25cbd53524eb84c57a5ca86ef 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 71c7a1b4b83b2b7dda4c2eff657e203a2f5f8181..fa23fda148506b781856fe0e89cc7495bb5424f2 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 da0c35a67fc3ec2dc5ac6816f4ccba264d811384..0e5e65de018edc51e0e6c4d1a0b161065241de76 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);