mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 07:12:47 +08:00
修正
This commit is contained in:
@@ -58,7 +58,7 @@ abstract class Make extends Command
|
|||||||
mkdir(strtolower(dirname($pathname)), 0755, true);
|
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>');
|
$output->writeln('<info>' . $this->type . ' created successfully.</info>');
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
namespace {%namespace%};
|
namespace {%namespace%};
|
||||||
|
|
||||||
use think\Controller;
|
use think\Controller;
|
||||||
|
use think\Request;
|
||||||
|
|
||||||
class {%className%} extends Controller
|
class {%className%} extends Controller
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user