diff --git a/src/Shell.php b/src/Shell.php index 0bb5673..69c02fe 100644 --- a/src/Shell.php +++ b/src/Shell.php @@ -64,8 +64,8 @@ protected static function getCommands() */ protected static function createCommand($commandName, $options = array()) { - $commandName = Inflector::camelcase(sprintf('%s_command', $commandName)); - $command = sprintf('App\\Commands\\%s', $commandName); + $className = Inflector::camelcase(sprintf('%s_command', $commandName)); + $command = sprintf('App\\Commands\\%s', $className); if (class_exists($command) === false) { throw new Exception(sprintf('Command "%s" not found', $command));