X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fresolver%2Fcommand%2Fweb%2Fclass_WebCommandResolver.php;fp=inc%2Fclasses%2Fmain%2Fresolver%2Fcommand%2Fweb%2Fclass_WebCommandResolver.php;h=e020350d254f0c15a3df50ecc82fbf6c3aefb2c3;hp=0e5e65de018edc51e0e6c4d1a0b161065241de76;hb=9e66d5e916e7bc5cf3f8ad0b84fac7fa8dec3812;hpb=d73abafb0f0126fa95ca6cb76cbf6c519bc99f43 diff --git a/inc/classes/main/resolver/command/web/class_WebCommandResolver.php b/inc/classes/main/resolver/command/web/class_WebCommandResolver.php index 0e5e65de..e020350d 100644 --- a/inc/classes/main/resolver/command/web/class_WebCommandResolver.php +++ b/inc/classes/main/resolver/command/web/class_WebCommandResolver.php @@ -131,7 +131,7 @@ class WebCommandResolver extends BaseCommandResolver implements CommandResolver if ($this->isCommandValid($commandName) === false) { // This command is invalid! throw new InvalidCommandException(array($this, $commandName), self::EXCEPTION_INVALID_COMMAND); - } + } // END - if // Get the command $commandInstance = $this->loadCommand($commandName); @@ -152,12 +152,6 @@ class WebCommandResolver extends BaseCommandResolver implements CommandResolver // Init command instance $commandInstance = null; - // Create class name - $className = $this->getCommandPrefix() . $this->convertToClassName($commandName) . 'Command'; - - // Create command class name - $this->setClassName($className); - // Is this class loaded? if (!class_exists($this->getClassName())) { // Class not found, so throw an exception