This commit is contained in:
yunwuxin
2016-07-14 18:14:18 +08:00
parent d3c5c6f166
commit f5771d0eb1
2 changed files with 2 additions and 1 deletions

View File

@@ -58,7 +58,7 @@ abstract class Make extends Command
mkdir(strtolower(dirname($pathname)), 0755, true);
}
file_put_contents($pathname, $this->buildClass($name));
file_put_contents($pathname, $this->buildClass($classname));
$output->writeln('<info>' . $this->type . ' created successfully.</info>');

View File

@@ -3,6 +3,7 @@
namespace {%namespace%};
use think\Controller;
use think\Request;
class {%className%} extends Controller
{