mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
修正 make:controller make:model 指令的默认模块
This commit is contained in:
@@ -28,7 +28,7 @@ class Controller extends Make
|
|||||||
->setName('make:controller')
|
->setName('make:controller')
|
||||||
->setDescription('Create a new controller class')
|
->setDescription('Create a new controller class')
|
||||||
->addArgument('namespace', Argument::REQUIRED)
|
->addArgument('namespace', Argument::REQUIRED)
|
||||||
->addOption('module', 'm', Option::VALUE_OPTIONAL, 'Module Name', null)
|
->addOption('module', 'm', Option::VALUE_OPTIONAL, 'Module Name', 'index')
|
||||||
->addOption('extend', 'e', Option::VALUE_OPTIONAL, 'Base on Controller class', null);
|
->addOption('extend', 'e', Option::VALUE_OPTIONAL, 'Base on Controller class', null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ class Model extends Make
|
|||||||
->setName('make:model')
|
->setName('make:model')
|
||||||
->setDescription('Create a new model class')
|
->setDescription('Create a new model class')
|
||||||
->addArgument('namespace', Argument::REQUIRED)
|
->addArgument('namespace', Argument::REQUIRED)
|
||||||
->addOption('module', 'm', Option::VALUE_OPTIONAL, 'Module Name', null)
|
->addOption('module', 'm', Option::VALUE_OPTIONAL, 'Module Name', 'index')
|
||||||
->addOption('extend', 'e', Option::VALUE_OPTIONAL, 'Base on Model class', null);
|
->addOption('extend', 'e', Option::VALUE_OPTIONAL, 'Base on Model class', null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user